Branch Coverage

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


line true false branch
254 1 663 unless @all
255 221 442 $type eq 'serif' ? :
257 44 619 if (my $selected = $self->$smethod)
261 621 42 unless ($args{$store})
285 72 173 unless delete $params{'extra'}
287 15 230 if (exists $params{'slides'})
292 235 1014 if (exists $params{$format})
297 10 235 if ($all)
303 1 0 if (exists $params{$dir} and defined $params{$dir} and -d $params{$dir})
343 2 216 if ($self->a4_pdf or $self->lt_pdf) { }
425 0 5 unless $dir and -d $dir
429 40 40 unless -f $file
430 20 20 unless $file =~ /^[0-9a-z][0-9a-z-]+[0-9a-z]+\.muse$/
432 8 12 if ($File::Find::dir =~ /\./)
436 4 4 if (@dirs and $dirs[0] and $dirs[0] eq ".")
441 5 3 if @dots
455 0 12 unless $f and -f $f
458 7 5 if (not -f $status) { }
0 5 elsif ((stat $f)[$mtime] > (stat $status)[$mtime]) { }
548 0 297 unless chdir $cwd
549 16 281 if (ref $file) { }
556 0 297 unless chdir $cwd
557 3 294 if ($fatal) { }
572 0 16 unless ref $vfile eq "HASH"
575 0 16 unless $files and @$files
577 0 16 unless $path and -d $path
578 0 16 unless chdir $path
607 1 280 unless $fileobj and -f $fileobj->full_path
609 280 0 if (my $path = $fileobj->path)
610 0 280 unless chdir $path
645 0 295 unless $avail{$status}
647 1 294 if (@diagnostics)
653 0 295 unless flock $fh, 8
660 0 295 unless open my $fhlock, ">:encoding(utf-8)", $statusfile
662 0 295 unless flock $fhlock, 6
670 1 294 if ($muse->is_deleted)
675 16 418 if ($method eq "sl_pdf" or $method eq "sl_tex")
676 7 9 unless ($muse->wants_slides)
687 1 426 if ($@) { }
426 0 elsif ($output) { }
698 1 293 if (@fatals) { }
705 4 289 if $self->cleanup
707 1 0 if $warn
713 0 27 unless $method
754 11 11 if ($m eq "sl_tex" or $m eq "sl_pdf")
755 7 4 unless $header->wants_slides
757 11 4 if (-f $outfile and (stat $outfile)[$mtime] >= (stat $file)[$mtime]) { }
782 0 351 if $ext eq ".muse"
784 5 346 if (-f $produced)
786 0 5 unless unlink $produced