Branch Coverage

blib/lib/LaTeXML/Util/Test.pm
Criterion Covered Total %
branch 6 84 7.1


line true false branch
24 0 21 if (not opendir($DIR, $directory)) { }
30 172 459 ($t = $_) =~ s/\.tex$// ? :
31 15 616 ($t = $_) =~ s/\.spec$// ? :
33 0 21 if (eval { do { &use_ok('LaTeXML::Core') } }) { }
36 0 0 if (not ref $requires) { }
0 0 elsif ($requires->{'*'}) { }
45 0 0 unless -f "$test.xml"
46 0 0 unless check_requirements($test, $requires->{$name})
51 0 0 unless -f "$test.xml" and -f "$test.status"
53 0 0 unless check_requirements($test, $requires->{$name})
62 0 0 ref $reqmts ? :
0 0 !$reqmts ? :
63 0 0 if ($kpsewhich and `"$kpsewhich" $reqmt` or pathname_find($reqmt)) { }
83 0 0 if (my $texstrings = process_texfile($texpath, $name))
84 0 0 if (my $xmlstrings = process_xmlfile($xmlpath, $name))
93 0 0 if (not $latexml) { }
97 0 0 if (not $dom) { }
109 0 0 if (not $domstring) { }
119 0 0 if (not $domstring) { }
133 0 0 if (not open($IN, '<', $path)) { }
146 0 0 $#$strings1 > $#$strings2 ? :
151 0 0 if (defined $string1) { }
155 0 0 if (defined $string2) { }
159 0 0 if (not $ok or $string1 ne $string2)
184 0 0 if ($opt->[0] eq 'timeout')
185 0 0 if ($timed) { }
187 0 0 length $opt->[1] ? :
190 0 0 if (not $generate) { }
195 0 0 if (my $teststrings = process_xmlfile("$base.test.xml", $base))
196 0 0 if (my $xmlstrings = process_xmlfile("$base.xml", $base))
200 0 0 if (my $teststatus = get_filecontent("$base.test.status", $base))
201 0 0 if (my $status = get_filecontent("$base.status", $base))
203 0 0 if -e "$base.test.xml"
204 0 0 if -e "$base.test.status"
212 0 0 if -e "$base.test.xml"
213 0 0 if -e "$base.test.status"
221 0 0 if (open $OPT, '<', $optionfile) { }
223 0 0 if $line =~ /^#/
225 0 0 if ($line =~ /(\S+)\s*=\s*(.*)/)
238 0 0 if (-e $path)
239 0 0 if (not open($IN, '<', $path)) { }
247 0 0 if (scalar @lines) { }