Branch Coverage

blib/lib/Dist/Zilla/Plugin/OurPkgVersion.pm
Criterion Covered Total %
branch 37 44 84.0


line true false branch
59 2 23 $self->skip_main_module ? :
68 1 8 if ($self->underscore_eval_version and $self->semantic_version)
78 0 24 if ($file->name =~ /\.pod$/imsux)
85 0 24 unless LaxVersionStr()->check($version)
90 0 24 unless defined $doc
92 1 23 if $self->overwrite
111 22 2 if (ref $comments eq 'ARRAY')
113 24 14 if (/$version_regex/msux)
115 10 14 if $self->zilla->is_trial
123 1 23 if ($self->semantic_version)
124 0 1 unless $version =~ /^v\d+\.\d+\.\d+$/ux
131 3 21 if ($self->overwrite and not $_->line)
135 3 0 if ($version_value_token)
142 1 23 if ($version =~ /_/u and $self->underscore_eval_version)
144 0 1 if $self->no_critic
146 1 0 $_->line ? :
155 20 4 if ($munged_version) { }
174 12 27 if $_->isa('PPI::Token::Whitespace')
176 3 24 if (not defined $want[$i]) { }
13 11 elsif ($want[$i] eq $_->content) { }
1 10 elsif ($i) { }
184 3 10 if $i >= $#want