Branch Coverage

blib/lib/SemVer.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
33 1 330 if &Scalar::Util::isvstring($ival)
36 229 101 if (eval { do { $ival->isa('version') } })
46 8 93 unless defined $val
60 209 58 if &Scalar::Util::isvstring($ival) or eval { do { $ival->isa('version') } }
65 2 56 if $v =~ s/_//g
75 0 23 if &Scalar::Util::isvstring($ival) or eval { do { $ival->isa('version') } }
80 1 22 if $v =~ s/_//g
91 1 504 if $str =~ s/_//g
99 19 100 $$self{'extra'} ? :
110 29 213 shift() ? :
113 62 180 if (my $ret = $left->SUPER::vcmp($right, 0)) { }
117 74 106 if (my $l = $$left{'extra'}) { }
118 8 66 unless my $r = $$right{'extra'}
121 8 98 $$right{'extra'} ? :