Branch Coverage

blib/lib/ShipIt/Step/ChangePodVersion.pm
Criterion Covered Total %
branch 6 20 30.0


line true false branch
15 0 0 defined $all_from_config ? :
29 0 0 unless $dist_file
34 0 0 if ($$self{'change_pod_version_all'})
36 0 0 if $module eq $dist_file
38 0 0 unless defined $version and length $version
58 0 0 unless open my $fh, '<', $file
62 0 0 if /\$VERSION\s*=\s*([\'\"])(.+?)\1/
71 3 2 if ($file_content =~ /^=head\d VERSION/m) { }
74 1 2 unless ($file_content =~ s/(^=head\d VERSION[^\d=]*)[\d._]+/$1$new_version/ms)
82 1 1 unless ($file_content =~ s/(^=head\d NAME.*?(?=^=))/$1$version/ms)