Branch Coverage

blib/lib/Text/Amuse/Functions.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
57 0 29 unless defined $line
58 0 29 unless $format eq "html" or $format eq "ltx"
81 0 18 unless defined $file and length $file
82 0 18 unless -f $file
86 6 12 if ($format)
87 1 5 unless $format eq "ltx" or $format eq "html"
133 3 247 if ($opts and ref $opts eq "HASH")
138 2 248 if (ref $text) { }
147 12 238 if ($format eq 'ltx') { }
19 219 elsif ($format eq 'html') { }
219 0 elsif ($format eq 'obj') { }
178 7 0 defined $pairs->{$key} ? :
181 6 30 if ($dir->[0] eq $key)
198 0 2 unless move($file, $backup)
199 0 2 unless move($rewritten, $file)