blib/lib/Data/VString.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 15 | 24 | 62.5 |
line | true | false | branch |
---|---|---|---|
131 | 2 | 38 | unless defined $vs and _is_vstring($vs) |
149 | 0 | 3 | unless $vs |
194 | 3 | 6 | if (/^(\d+([._]\d+)*)$/) |
195 | 2 | 1 | if _vstring_cmp($vs, '==', $1) |
198 | 4 | 2 | if (/^([=!<>]=|[<>])(\d+([._]\d+)*)$/) |
199 | 4 | 0 | if _vstring_cmp($vs, $1, $2) |
202 | 2 | 0 | if (/^(\d+([._]\d+)*)\.\.(\d+([._]\d+)*)$/) |
203 | 2 | 0 | if _vstring_cmp($1, '<=', $vs) and _vstring_cmp($vs, '<=', $3) |
207 | 0 | 0 | if carp("bad predicate $_") |
255 | 0 | 3 | unless $v1 |
257 | 0 | 3 | unless (exists $cmp{$op}) |
262 | 0 | 3 | unless $v2 |