Branch Coverage

blib/lib/Text/Amuse/Compile.pm
Criterion Covered Total %
branch 79 100 79.0


line true false branch
255 1 669 unless @all
256 223 446 $type eq 'serif' ? :
258 46 623 if (my $selected = $self->$smethod)
262 625 44 unless ($args{$store})
286 72 175 unless delete $params{'extra'}
288 15 232 if (exists $params{'slides'})
293 237 1024 if (exists $params{$format})
298 10 237 if ($all)
304 1 0 if (exists $params{$dir} and defined $params{$dir} and -d $params{$dir})
344 2 218 if ($self->a4_pdf or $self->lt_pdf) { }
426 0 5 unless $dir and -d $dir
430 40 40 unless -f $file
431 20 20 unless $file =~ /^[0-9a-z][0-9a-z-]+[0-9a-z]+\.muse$/
433 8 12 if ($File::Find::dir =~ /\./)
437 4 4 if (@dirs and $dirs[0] and $dirs[0] eq ".")
442 5 3 if @dots
456 0 12 unless $f and -f $f
459 7 5 if (not -f $status) { }
0 5 elsif ((stat $f)[$mtime] > (stat $status)[$mtime]) { }
549 0 301 unless chdir $cwd
550 16 285 if (ref $file) { }
557 0 301 unless chdir $cwd
558 3 298 if ($fatal) { }
573 0 16 unless ref $vfile eq "HASH"
576 0 16 unless $files and @$files
578 0 16 unless $path and -d $path
579 0 16 unless chdir $path
608 1 284 unless $fileobj and -f $fileobj->full_path
610 284 0 if (my $path = $fileobj->path)
611 0 284 unless chdir $path
646 0 299 unless $avail{$status}
648 1 298 if (@diagnostics)
654 0 299 unless flock $fh, 8
661 0 299 unless open my $fhlock, ">:encoding(utf-8)", $statusfile
663 0 299 unless flock $fhlock, 6
671 1 298 if ($muse->is_deleted)
676 16 422 if ($method eq "sl_pdf" or $method eq "sl_tex")
677 7 9 unless ($muse->wants_slides)
688 1 430 if ($@) { }
430 0 elsif ($output) { }
699 1 297 if (@fatals) { }
706 4 293 if $self->cleanup
708 1 0 if $warn
714 0 27 unless $method
755 11 11 if ($m eq "sl_tex" or $m eq "sl_pdf")
756 7 4 unless $header->wants_slides
758 11 4 if (-f $outfile and (stat $outfile)[$mtime] >= (stat $file)[$mtime]) { }
783 0 351 if $ext eq ".muse"
785 5 346 if (-f $produced)
787 0 5 unless unlink $produced