Branch Coverage

lib/SemVer.pm
Criterion Covered Total %
branch 45 50 90.0


line true false branch
40 5 591 if &Scalar::Util::isvstring($ival)
43 315 276 if (eval { do { $ival->isa('version') } })
54 8 268 unless defined $val
84 296 51 if &Scalar::Util::isvstring($ival) or eval { do { $ival->isa('version') } }
89 2 49 if $v =~ s/_//g
100 1 16 if &Scalar::Util::isvstring($ival) or eval { do { $ival->isa('version') } }
105 1 15 if $v =~ s/_//g
117 1 664 if $str =~ s/_//g
125 5 106 $self->{'extra'} ? :
151 23 298 shift() ? :
154 108 213 if (my $ret = $left->SUPER::vcmp($right, 0)) { }
159 211 2 if (defined $left->{'prerelease'})
162 213 0 if (defined $right->{'prerelease'})
166 108 105 if ($lenLeft == 0) { }
167 100 8 if ($lenRight == 0) { }
174 17 88 if ($lenRight == 0) { }
183 0 95 if (not $isNumLeft and $isNumRight) { }
1 94 elsif ($isNumLeft and not $isNumRight) { }
6 88 elsif ($isNumLeft and $isNumRight) { }
189 0 6 if ($left->{'prerelease'}[$i] == $right->{'prerelease'}[$i]) { }
0 6 elsif ($left->{'prerelease'}[$i] > $right->{'prerelease'}[$i]) { }
198 39 49 if (lc $left->{'prerelease'}[$i] eq lc $right->{'prerelease'}[$i]) { }
10 39 elsif (lc $left->{'prerelease'}[$i] gt lc $right->{'prerelease'}[$i]) { }
208 0 32 if ($lenLeft > $lenRight) { }
6 26 elsif ($lenLeft < $lenRight) { }