Branch Coverage

blib/lib/Dist/Zilla/Plugin/ReadmeAnyFromPod.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
100 0 39 -e $pod ? :
121 1 41 if $self->location eq 'build' and $self->phase eq 'release'
124 4 37 if $self->location eq 'build' and $self->type eq 'pod'
133 21 20 if ($self->location eq 'build' and &none(sub { $_->name eq $filename; } , @{$self->zilla->files;}))
153 10 31 if ($self->location eq 'root' and not grep({$_->filename eq $self->filename if &blessed($self) eq &blessed($_) and $_->location eq 'build';} @{$self->zilla->plugins;}))
155 34 255 if &blessed($self) eq &blessed($_) and $_->location eq 'build'
160 40 1 unless $file->name eq $self->filename
172 22 19 if ($self->location eq 'build')
175 21 1 if ($file) { }
201 8 13 unless $watching{$source_file->name}++
211 39 1 if $self->phase eq 'build'
217 1 0 if $self->phase eq 'release'
223 19 21 if ($self->location eq 'root')
230 2 17 if (-e $destination_file)
237 0 19 $encoding eq 'raw' ? :
272 40 0 if ($pod_elems)
277 40 0 if ((my $encoding = $self->_get_source_encoding) ne 'raw' and not eval { do { 'Dist::Zilla::Role::PPI'->VERSION('6.003') } })
292 59 0 $source_file->can('encoding') ? :
313 32 33 if ($cache{$name})