Branch Coverage

blib/lib/Dist/Zilla/Plugin/RewriteVersion.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
67 2 12 if $self->skip_version_provider
69 7 5 if exists $ENV{'V'}
78 5 0 if $version
92 0 29 if $file->is_bytes
94 0 29 if ($file->name =~ /\.pod$/)
103 25 1 if ($self->rewrite_version($file, $version)) { }
118 9 17 if $self->zilla->is_trial
120 2 24 if ($self->add_tarball_name)
122 0 2 $self->zilla->is_trial ? :
125 3 23 if $version =~ /_/ and scalar $version =~ /\./g <= 1
130 2 24 $self->global ? :
25 1 if ($self->global ? $content =~ s/^${assign_regex}[^\n]*$/$code/gms : $content =~ s/^${assign_regex}[^\n]*$/$code/ms)