Branch Coverage

blib/lib/Dist/Zilla/Plugin/Git/NextVersion.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
55 64 24 /$regexp/ ? :
75 19 11 if @$versions
89 12 8 if ($by_branch)
92 3 9 if (-f $cachefile)
94 2 1 if $cachefile->slurp =~ /^\Q$head\E (.+)/
100 24 24 unless /^\s*\((.+)\)/
105 0 9 if ($self->logger->get_debug)
110 7 3 if (defined $last_ver)
111 6 1 unless $head
120 0 11 if defined $last_ver and $by_branch
151 1 0 if grep(($_ == $version), @{$self->_all_versions;})
165 3 20 if exists $ENV{'V'}
169 7 13 unless defined $last_ver
185 0 0 unless $file->name eq '.gitnxtver_cache'