Branch Coverage

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


line true false branch
263 1 669 unless @all
264 223 446 $type eq 'serif' ? :
266 46 623 if (my $selected = $self->$smethod)
270 625 44 unless ($args{$store})
294 72 175 unless delete $params{'extra'}
296 15 232 if (exists $params{'slides'})
301 237 1024 if (exists $params{$format})
306 10 237 if ($all)
312 1 0 if (exists $params{$dir} and defined $params{$dir} and -d $params{$dir})
352 2 218 if ($self->a4_pdf or $self->lt_pdf) { }
434 0 5 unless $dir and -d $dir
438 40 40 unless -f $file
439 20 20 unless $file =~ /^[0-9a-z][0-9a-z-]+[0-9a-z]+\.muse$/
441 8 12 if ($File::Find::dir =~ /\./)
445 4 4 if (@dirs and $dirs[0] and $dirs[0] eq ".")
450 5 3 if @dots
464 0 12 unless $f and -f $f
467 7 5 if (not -f $status) { }
0 5 elsif ((stat $f)[$mtime] > (stat $status)[$mtime]) { }
557 0 301 unless chdir $cwd
558 16 285 if (ref $file) { }
565 0 301 unless chdir $cwd
566 3 298 if ($fatal) { }
581 0 16 unless ref $vfile eq "HASH"
584 0 16 unless $files and @$files
586 0 16 unless $path and -d $path
587 0 16 unless chdir $path
617 1 284 unless $fileobj and -f $fileobj->full_path
619 284 0 if (my $path = $fileobj->path)
620 0 284 unless chdir $path
656 0 299 unless $avail{$status}
658 1 298 if (@diagnostics)
664 0 299 unless flock $fh, 8
671 0 299 unless open my $fhlock, ">:encoding(utf-8)", $statusfile
673 0 299 unless flock $fhlock, 6
681 1 298 if ($muse->is_deleted)
686 16 422 if ($method eq "sl_pdf" or $method eq "sl_tex")
687 7 9 unless ($muse->wants_slides)
698 1 430 if ($@) { }
430 0 elsif ($output) { }
709 1 297 if (@fatals) { }
716 4 293 if $self->cleanup
718 1 0 if $warn
724 0 27 unless $method
765 11 11 if ($m eq "sl_tex" or $m eq "sl_pdf")
766 7 4 unless $header->wants_slides
768 11 4 if (-f $outfile and (stat $outfile)[$mtime] >= (stat $file)[$mtime]) { }
793 0 351 if $ext eq ".muse"
795 5 346 if (-f $produced)
797 0 5 unless unlink $produced