Condition Coverage

blib/lib/Carp/Assert/More.pm
Criterion Covered Total %
condition 174 248 70.1


and 3 conditions

line !l l&&!r l&&r condition
143 1 1 4 defined $match and $string eq $match
170 1 0 5 defined $string and defined $unmatch
1 4 1 defined $string and defined $unmatch and $string ne $unmatch
246 2 1 10 &looks_like_number($x) and &looks_like_number($y)
3 5 5 &looks_like_number($x) and &looks_like_number($y) and $x == $y
249 2 1 10 &looks_like_number($x) and &looks_like_number($y)
3 5 5 &looks_like_number($x) and &looks_like_number($y) and $x != $y
252 2 1 14 &looks_like_number($x) and &looks_like_number($y)
3 7 7 &looks_like_number($x) and &looks_like_number($y) and $x < $y
255 2 1 14 &looks_like_number($x) and &looks_like_number($y)
3 7 7 &looks_like_number($x) and &looks_like_number($y) and $x <= $y
258 2 2 14 &looks_like_number($x) and &looks_like_number($y)
4 7 7 &looks_like_number($x) and &looks_like_number($y) and $x > $y
261 2 1 14 &looks_like_number($x) and &looks_like_number($y)
3 7 7 &looks_like_number($x) and &looks_like_number($y) and $x >= $y
264 0 0 2 defined $x and defined $y
0 1 1 defined $x and defined $y and $x lt $y
267 0 0 2 defined $x and defined $y
0 1 1 defined $x and defined $y and $x le $y
270 0 0 2 defined $x and defined $y
0 1 1 defined $x and defined $y and $x gt $y
273 0 0 2 defined $x and defined $y
0 1 1 defined $x and defined $y and $x ge $y
299 1 0 6 defined $string and not ref $string
425 2 2 1 $x and $y
460 2 1 1 $x and not $y
461 1 1 1 $y and not $x
598 1 8 1 defined $this and $this + 0 < 0
619 1 6 3 defined $this and $this =~ /$INTEGER/
643 1 8 409 defined $this and $this =~ /$INTEGER/
666 1 6 3 defined $this and $this =~ /$INTEGER/
689 1 7 3 defined $this and $this =~ /$INTEGER/
716 1 0 4 $lo <= $n and $n <= $hi
741 1 2 4 defined $n and $n =~ /$INTEGER/
742 1 0 3 $lo <= $n and $n <= $hi
767 4 0 2 builtin::blessed($this) and $this->isa($type)
846 3 3 3 $n and $n > 1
947 4 0 1 builtin::blessed($ref) and $ref->isa("HASH")
967 4 0 2 builtin::blessed($ref) and $ref->isa("HASH")
996 8 0 2 builtin::blessed($ref) and $ref->isa("ARRAY")
1016 4 0 2 builtin::blessed($ref) and $ref->isa("ARRAY")
1045 4 0 0 builtin::blessed($ref) and $ref->isa("ARRAY")
1048 2 0 7 builtin::blessed($i) and $i->isa($type)
1083 4 0 0 builtin::blessed($ref) and $ref->isa("ARRAY")
1087 2 0 7 builtin::blessed($i) and $i->isa($type)
1133 4 0 0 builtin::blessed($aref) and $aref->isa("ARRAY")
1172 4 0 1 builtin::blessed($ref) and $ref->isa("ARRAY")
1175 2 0 0 builtin::blessed($val) and $val->isa("HASH")
1199 6 0 1 builtin::blessed($ref) and $ref->isa("CODE")
1241 0 0 0 builtin::blessed($ref) and $ref->isa("DateTime")
1273 2 0 0 builtin::blessed($haystack) and $haystack->isa("ARRAY")
1334 0 0 0 builtin::blessed($hash) and $hash->isa("HASH")
1382 0 0 0 builtin::blessed($hash) and $hash->isa("HASH")
1428 1 0 0 builtin::blessed($hash) and $hash->isa("HASH")
1467 1 0 0 builtin::blessed($hash) and $hash->isa("HASH")
1622 3 2 2 defined $wantarray and not $wantarray

or 2 conditions

line l !l condition
279 49 12 $x // "undef"
48 13 $y // "undef"

or 3 conditions

line l !l&&r !l&&!r condition
279 10 61 0 $why //= 'Failed: ' . ($x // "undef") . ' ' . $op . ' ' . ($y // "undef")
443 2 1 2 $x or $y
947 2 5 0 ref $ref eq "HASH" or builtin::blessed($ref) and $ref->isa("HASH")
967 4 6 0 ref $ref eq "HASH" or builtin::blessed($ref) and $ref->isa("HASH")
996 3 10 0 ref $ref eq "ARRAY" or builtin::blessed($ref) and $ref->isa("ARRAY")
1016 5 6 0 ref $ref eq "ARRAY" or builtin::blessed($ref) and $ref->isa("ARRAY")
1045 6 0 4 ref $ref eq "ARRAY" or builtin::blessed($ref) and $ref->isa("ARRAY")
1048 7 0 2 builtin::blessed($i) and $i->isa($type) or ref $i eq $type
1083 6 0 4 ref $ref eq "ARRAY" or builtin::blessed($ref) and $ref->isa("ARRAY")
1087 7 0 2 builtin::blessed($i) and $i->isa($type) or ref $i eq $type
1133 6 0 4 ref $aref eq "ARRAY" or builtin::blessed($aref) and $aref->isa("ARRAY")
1172 3 5 0 ref $ref eq "ARRAY" or builtin::blessed($ref) and $ref->isa("ARRAY")
1175 3 0 2 ref $val eq "HASH" or builtin::blessed($val) and $val->isa("HASH")
1199 11 6 1 ref $ref eq "CODE" or builtin::blessed($ref) and $ref->isa("CODE")
1241 0 0 0 ref $ref eq "DateTime" or builtin::blessed($ref) and $ref->isa("DateTime")
1273 10 0 2 ref $haystack eq "ARRAY" or builtin::blessed($haystack) and $haystack->isa("ARRAY")
1334 10 0 0 ref $hash eq "HASH" or builtin::blessed($hash) and $hash->isa("HASH")
1382 6 0 0 ref $hash eq "HASH" or builtin::blessed($hash) and $hash->isa("HASH")
1428 8 0 1 ref $hash eq "HASH" or builtin::blessed($hash) and $hash->isa("HASH")
1467 14 0 1 ref $hash eq "HASH" or builtin::blessed($hash) and $hash->isa("HASH")
1540 1 2 0 $_[0] // "$subroutine must not be called in void context"
1582 2 3 0 $_[0] // "$subroutine must be called in void context"
1624 2 3 0 $_[0] // "$subroutine must be called in scalar context"
1665 2 3 0 shift() // "$subroutine must be called in list context"

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
168 5 1 1 1 defined $string xor defined $unmatch