Branch Coverage

blib/lib/Dist/Zilla/Plugin/NextVersion/Semantic.pm
Criterion Covered Total %
branch 14 22 63.6


line true false branch
96 1 0 unless @changes
120 0 0 unless open my $out_fh, '>', $filename
125 0 0 unless close $out_fh
162 1 7 if exists $ENV{'V'}
175 1 5 if $self->numify_version
185 0 6 unless my($changes_file) = grep({$_->name eq $self->change_file;} @{$self->zilla->files;})
215 0 7 unless $file
261 22 3 if (my $previous = $self->previous_version)
267 0 22 unless @version = $previous =~ /$regex/
279 2 23 if (any sub { $version[$_] > 0; } , $self->nbr_version_levels .. 2)
287 1 37 if (length $version[$i] > $sizes[$i])