Branch Coverage

lib/Templer/Site.pm
Criterion Covered Total %
branch 53 90 58.8


line true false branch
164 0 6 unless (-d $input)
188 4 1 unless -d $output or $inplace
289 25 1 unless $dotfiles and $name =~ m[/\.]
311 2 3 if ($args{'must_match'}) { }
2 1 elsif ($args{'must_not_match'}) { }
315 0 3 if -d $file
316 1 2 unless $file =~ /$args{'must_match'}/
324 2 10 if $file =~ /$args{'must_not_match'}/
336 2 3 if ($args{'object'} eq 'Templer::Site::Page')
369 0 2 if (-d $self->{'plugin-path'})
372 0 0 if $self->{'verbose'}
388 0 2 if -d $path
417 0 2 if $self->{'verbose'}
429 0 2 if ($page->field('output')) { }
436 2 0 unless $self->{'in-place'}
449 0 2 if $self->{'verbose'}
450 0 2 if $self->{'verbose'}
460 0 2 if $self->{'verbose'}
465 0 2 unless (-e $self->{'layout-path'} . '/' . $template)
485 1 1 if ($filter)
490 0 2 unless $f
524 0 2 if ($self->{'debug'})
541 2 0 unless -e $dst
543 0 2 unless ($rebuild)
555 0 0 if (-M $d < -M $dst)
557 0 0 if $self->{'verbose'}
567 0 2 if $self->{'force'}
572 0 2 unless $rebuild
582 2 0 if ($dirName =~ m[^(.*)/(.*)$])
614 2 0 if ($path =~ m[^(.*)/(.*)$])
617 0 2 unless -d $path
624 0 2 unless open my $handle, '>:utf8', $dst
658 0 2 if $self->{'in-place'}
694 5 5 if ($src =~ /\'/) { }
713 10 0 if (not -e "$self->{'output'}/$src" or not -d "$self->{'output'}/$src" and -M "$self->{'output'}/$src" > -M $asset->source)
724 2 0 if (scalar @copy ne 0)
732 0 2 if $self->{'verbose'}
748 0 1 if $self->{'in-place'}
750 0 1 unless $self->{'sync'}
776 1 4 if $count{$_} == 1 and not -d $_
777 1 4 if $count{$_} == 1 and -d $_
785 1 0 if (@files)
787 0 1 if $self->{'verbose'}
795 1 0 if (@dirs)
797 0 1 if $self->{'verbose'}