Branch Coverage

blib/lib/Dist/Zilla/Plugin/TrialVersionComment.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
23 4 2 unless $self->zilla->is_trial
28 0 2 if $file->can('is_bytes') and $file->is_bytes
29 0 2 if $INC{&module_notional_filename('Dist::Zilla::Role::MutableFile')} and not $file->does('Dist::Zilla::Role::MutableFile')
37 0 2 unless $package_stmt
47 39 9 unless $node->isa('PPI::Statement')
50 4 5 if $node->isa('PPI::Statement::Package')
55 0 3 unless $node->isa('PPI::Statement::Variable') and $node->type eq 'our' and grep {$_ eq '$VERSION';} $node->variables
64 0 2 unless ($matches)
66 0 0 unless defined $matches
81 2 0 if $munged