Branch Coverage

blib/lib/App/RewriteVersion.pm
Criterion Covered Total %
branch 45 64 70.3


line true false branch
23 0 12 unless defined $version
27 2 5 if (defined $bump) { }
28 0 2 unless ref $bump eq 'CODE'
39 8 2 defined $params{'dist_dir'} ? :
42 0 10 if defined $ENV{'V'}
44 8 2 unless defined $version_from
46 1 8 unless defined $version
52 0 27 unless defined $file
54 1 26 unless defined $version
59 0 22 unless -T $file
63 5 17 if $is_trial
65 5 17 if $version =~ /_/ and scalar $version =~ /\./g <= 1
70 0 22 $self->global ? :
17 5 if ($self->global ? $content =~ s/^${assign_regex}[^\n]*$/$code/gms : $content =~ s/^${assign_regex}[^\n]*$/$code/ms)
73 1 16 if ($new_version_obj < $old_version_obj)
76 17 0 unless $self->dry_run
85 0 10 unless defined $version
86 9 1 defined $params{'dist_dir'} ? :
88 1 9 defined $params{'subdirs'} ? :
102 0 17 if ($self->verbose)
103 0 0 $rewritten ? :
113 0 28 unless defined $file
116 0 28 unless -T $file
122 0 28 if $version and $self->verbose
128 9 39 $self->allow_decimal_underscore ? :
14 34 unless $self->allow_decimal_underscore ? _is_loose_version($version) : _is_strict_version($version)
139 0 8 if $self->verbose
151 2 6 unless ($main->exists)
154 0 7 unless defined $main and $main->exists
157 0 7 if $self->verbose
194 39 0 if defined $_[0]
197 9 0 if defined $_[0]