Branch Coverage

blib/lib/Dist/Zilla/Plugin/OurPkgVersion.pm
Criterion Covered Total %
branch 36 42 85.7


line true false branch
53 2 23 $self->skip_main_module ? :
62 1 8 if ($self->underscore_eval_version and $self->semantic_version)
72 0 24 if ($file->name =~ /\.pod$/imsux)
79 0 24 unless LaxVersionStr()->check($version)
84 0 24 unless defined $doc
86 1 23 if $self->overwrite
105 22 2 if (ref $comments eq 'ARRAY')
107 24 14 if (/$version_regex/msux)
109 10 14 if $self->zilla->is_trial
117 1 23 if ($self->semantic_version)
118 0 1 unless $version =~ /^v\d+\.\d+\.\d+$/ux
125 3 21 if ($self->overwrite and not $_->line)
129 3 0 if ($version_value_token)
136 1 23 if ($version =~ /_/u and $self->underscore_eval_version)
138 1 0 $_->line ? :
147 20 4 if ($munged_version) { }
166 12 27 if $_->isa('PPI::Token::Whitespace')
168 3 24 if (not defined $want[$i]) { }
13 11 elsif ($want[$i] eq $_->content) { }
1 10 elsif ($i) { }
176 3 10 if $i >= $#want