Branch Coverage

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


line true false branch
53 2 22 $self->skip_main_module ? :
62 1 7 if ($self->underscore_eval_version and $self->semantic_version)
66 0 7 unless LaxVersionStr()->check($self->zilla->version)
75 0 23 if ($file->name =~ /\.pod$/imsux)
83 0 23 unless defined $doc
85 1 22 if $self->overwrite
104 21 2 if (ref $comments eq 'ARRAY')
106 23 13 if (/$version_regex/msux)
108 9 14 if $self->zilla->is_trial
116 1 22 if ($self->semantic_version)
117 0 1 unless $version =~ /^v\d+\.\d+\.\d+$/ux
124 3 20 if ($self->overwrite and not $_->line)
128 3 0 if ($version_value_token)
135 1 22 if ($version =~ /_/u and $self->underscore_eval_version)
137 1 0 $_->line ? :
146 19 4 if ($munged_version) { }
165 12 27 if $_->isa('PPI::Token::Whitespace')
167 3 24 if (not defined $want[$i]) { }
13 11 elsif ($want[$i] eq $_->content) { }
1 10 elsif ($i) { }
175 3 10 if $i >= $#want