Branch Coverage

blib/lib/Versioning/Scheme/Dotted.pm
Criterion Covered Total %
branch 31 32 96.8


line true false branch
18 33 6 $v =~ /$re/ ? :
23 1 1 unless $v =~ /$re/
31 1 6 unless $self->is_valid_version($v)
34 4 2 if (defined $opts->{'parts'})
35 1 3 unless $opts->{'parts'} >= 1
36 1 2 if ($opts->{'parts'} < @parts) { }
48 1 6 unless $self->is_valid_version($v1)
49 1 5 unless $self->is_valid_version($v2)
53 0 5 @parts1 < @parts2 ? :
56 2 10 if $cmp
68 1 11 unless $self->is_valid_version($v)
69 1 10 unless $opts->{'num'} != 0
72 1 9 if $opts->{'part'} < -@parts
77 1 8 if $parts[$idx] + $opts->{'num'} < 0
80 4 4 if ($opts->{'reset_smaller'} and $opts->{'num'} > 0)
81 3 1 if $idx < 0