Branch Coverage

blib/lib/Versioning/Scheme/Semantic.pm
Criterion Covered Total %
branch 33 34 97.0


line true false branch
26 7 10 $v =~ /$re/x ? :
31 0 1 unless $v =~ /$re/x
45 1 1 unless $self->is_valid_version($v)
52 1 9 unless my($x1, $y1, $z1, $pre1) = $v1 =~ /$re/x
53 1 8 unless my($x2, $y2, $z2, $pre2) = $v2 =~ /$re/x
55 2 4 defined $pre1 ? :
4 2 defined $pre2 ? :
4 2 unless $x1 <=> $x2 or $y1 <=> $y2 or $z1 <=> $z2 or (defined $pre1 ? 0 : 1) <=> (defined $pre2 ? 0 : 1)
67 1 13 unless my($x, $y, $z, $pre, $meta) = $v =~ /$re/x
68 1 12 unless $opts->{'num'} != 0
71 1 11 if $opts->{'part'} > $#parts
73 1 10 if $opts->{'part'} < -@parts
78 1 9 if $parts[$idx] + $opts->{'num'} < 0
80 5 4 if ($opts->{'reset_smaller'} and $opts->{'num'} > 0)
81 4 1 if $idx < 0
87 1 8 defined $pre ? :
1 8 defined $meta ? :