lib/SemVer/V2/Strict.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 30 | 30 | 100.0 |
line | true | false | branch |
---|---|---|---|
31 | 1 | 46 | if @_ == 0 |
32 | 45 | 2 | if @_ == 1 |
33 | 1 | 42 | if @_ >= 2 |
41 | 6 | 45 | unless $version =~ qr/^@{[\undef];}$/ |
78 | 5 | 9 | if $self->pre_release |
79 | 2 | 12 | if $self->build_metadata |
87 | 4 | 13 | if $self->major != $other->major |
88 | 1 | 12 | if $self->minor != $other->minor |
89 | 1 | 11 | if $self->patch != $other->patch |
96 | 1 | 10 | if not defined $a and $b |
97 | 1 | 9 | if $a and not defined $b |
99 | 8 | 1 | if ($a and $b) |
108 | 4 | 8 | if (&looks_like_number($a) and &looks_like_number($b)) |
109 | 3 | 1 | if $a != $b |
115 | 3 | 22 | if $c != 0 |