Condition Coverage

blib/lib/Debian/Dpkg/Version.pm
Criterion Covered Total %
condition 47 59 79.6


and 3 conditions

line !l l&&!r l&&r condition
149 3 1118 0 ref $b and $b->isa('Debian::Dpkg::Version')
318 1408 78 1699 $a =~ /^\d+$/ and $b =~ /^\d+$/
355 0 3443 0 defined $version and length $version
365 3080 360 1 $version =~ /:/ and not $version =~ /^\d*:/

or 2 conditions

line l !l condition
291 3515 26 $a ||= 0
292 3411 130 $b ||= 0
316 2611 574 $a ||= 0
317 2585 600 $b ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
80 0 1210 0 ref $this || $this
194 559 0 0 'Debian::Dpkg::Version'->new($a, 'check', 1) || error(_g('%s is not a valid version'), "$a")
195 559 0 0 'Debian::Dpkg::Version'->new($b, 'check', 1) || error(_g('%s is not a valid version'), "$b")
242 43 43 430 $op eq '>' or $op eq '<'
245 43 43 430 $op eq '>>' or $op eq 'gt'
43 43 344 $op eq '>=' or $op eq 'ge'
86 43 301 $op eq '>=' or $op eq 'ge' or $op eq '>'
43 43 215 $op eq '=' or $op eq 'eq'
43 43 129 $op eq '<=' or $op eq 'le'
86 43 86 $op eq '<=' or $op eq 'le' or $op eq '<'
43 43 0 $op eq '<<' or $op eq 'lt'
290 3515 0 1044 defined $a or defined $b
315 3081 0 604 defined $a or defined $b