Branch Coverage

blib/lib/PDF/PDFUnit.pm
Criterion Covered Total %
branch 12 60 20.0


line true false branch
46 0 0 if ($_[0] eq 'PDF::PDFUnit') { }
64 20 0 unless $debug_level >= $level
77 4 0 if (defined $init_style)
79 0 4 unless (grep {$init_style eq $_;} ':skip_on_error', ':noinit')
84 4 0 if (defined $init_style and $init_style eq ':skip_on_error')
88 0 0 unless (defined $init_style and $init_style eq ':noinit')
103 0 0 if $class->load_config(@_) and $class->build_classpath(@_)
117 0 4 if $PDF::PDFUnit::instance->{'is_loaded'}
129 8 8 if (my($envar) = /ENV%(.*?)%/)
136 4 4 if (exists $ENV{$envar}) { }
146 0 16 if (defined $location and -r $location)
153 4 0 unless ($config_found)
156 4 0 if ($args{'skip_on_error'})
166 0 0 unless open my $cfghandle, '<', $config_found
182 0 0 if /^#/
183 0 0 if /^\s*$/
187 0 0 if (not exists $config_schema{$key}) { }
193 0 0 if ($config_schema{$key} =~ /^deprecated;/) { }
209 0 0 unless (exists $config{$_})
212 0 0 if ($args{'skip_on_error'})
241 0 0 if $PDF::PDFUnit::instance->{'is_sane'}
249 0 0 unless (-d $pdfunit_java_home)
252 0 0 if ($args{'skip_on_error'})
279 0 0 if (@contains_main_jar and $count >= 20) { }
290 0 0 if ($args{'skip_on_error'})
300 0 0 unless /\.jar$/i
313 0 0 unless $PDF::PDFUnit::instance->{'is_sane'}
316 0 0 if defined $class->val('outfox_display')
332 0 0 if ($@)
333 0 0 if ($args{'skip_on_error'})