Branch Coverage

blib/lib/App/Dapper.pm
Criterion Covered Total %
branch 4 88 4.5


line true false branch
299 0 1 unless defined $$self{'source'}
300 0 1 unless defined $$self{'output'}
301 0 1 unless defined $$self{'layout'}
302 0 1 unless defined $$self{'config'}
408 0 0 unless ($$page{'layout'})
419 0 0 unless $tt->process(\$layout, \%tags, \$destination1)
426 0 0 unless $tt->process(\$destination1, \%tags, \$destination)
429 0 0 if ($$page{'filename'}) { }
431 0 0 unless open DESTINATION, ">$$page{'filename'}"
432 0 0 unless print DESTINATION $destination
433 0 0 unless close DESTINATION
464 0 0 unless $port
478 0 0 unless my $config = LoadFile($$self{'config'})
483 0 0 unless defined $$self{'source'}
484 0 0 unless defined $$self{'output'}
485 0 0 unless defined $$self{'layout'}
496 0 0 unless opendir DIR, $$self{'layout'}
515 0 0 unless (defined $1)
516 0 0 unless (defined $2)
521 0 0 unless (defined $$frontmatter{'layout'})
522 0 0 unless (defined $$self{'layout_content'}{$$frontmatter{'layout'}})
541 0 0 unless (defined $output_handle)
546 0 0 if (defined $source_handle) { }
552 0 0 if (-d "$source_dir/$directory_element" and $directory_element ne '.' and $directory_element ne '..') { }
0 0 elsif (-f "$source_dir/$directory_element" and $directory_element ne '.' and $directory_element ne '..') { }
558 0 0 if ($directory_element =~ /^\./)
600 0 0 unless ($page{'date'})
606 0 0 if ($page{'date'} =~ /^(\d\d\d\d)-(\d\d)-(\d\d) (\d\d)\:(\d\d)\:(\d\d)$/)
616 0 0 unless ($page{'timezone'})
631 0 0 defined $page{'urlpattern'} ? :
632 0 0 if defined $page{'categories'}
633 0 0 if defined $page{'year'}
634 0 0 if defined $page{'month'}
635 0 0 if defined $page{'day'}
636 0 0 if defined $page{'hour'}
637 0 0 if defined $page{'minute'}
638 0 0 if defined $page{'second'}
639 0 0 if defined $page{'slug'}
645 0 0 unless (defined $page{'extension'})
651 0 0 if (defined $page{'categories'})
660 0 0 if ($page{'source_file_extension'} eq '.md') { }
674 0 0 if ($page{'categories'})
686 0 0 unless opendir DIR, $dir
690 0 0 if $file =~ /$i/