Branch Coverage

blib/lib/ShipIt/Step/ChangeAllVersions.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
20 7 7 unless -f $_ and not -l $_
22 3 4 if ($_ =~ /$looks_like_perl/) { }
29 2 2 if ($buff and $buff eq '#!')
49 0 2 if ($dry_run)
61 8 0 unless ($dry_run)
71 6 84 if (s/(\$VERSION .+) \b $current_version \b/$1$new_version/msx)
80 30 60 if (/\A =head1 \s+ VERSION\b/msx ... /\A =\w+/msx)
81 6 24 if (s/(version \b .+) $current_version/$1$new_version/msx)
88 90 0 if defined $out
93 0 8 if $dry_run
97 8 0 if ($need_replace) { }