Branch Coverage

blib/lib/Dist/Zilla/Plugin/TrialVersionComment.pm
Criterion Covered Total %
branch 15 20 75.0


line true false branch
39 1 6 unless $self->zilla->is_trial
44 0 6 if $file->can('is_bytes') and $file->is_bytes
45 0 6 if $INC{&module_notional_filename('Dist::Zilla::Role::MutableFile')} and not $file->does('Dist::Zilla::Role::MutableFile')
53 0 6 unless $package_stmt
63 66 20 unless $node->isa('PPI::Statement')
66 8 12 if $node->isa('PPI::Statement::Package')
71 1 4 unless $node->isa('PPI::Statement::Variable') and $node->type eq 'our' and grep {$_ eq '$VERSION';} $node->variables
80 4 2 unless ($matches)
82 0 4 unless defined $matches
97 2 0 if $munged