Condition Coverage

blib/lib/Carp/Assert/More.pm
Criterion Covered Total %
condition 136 197 69.0


and 3 conditions

line !l l&&!r l&&r condition
117 1 1 4 defined $match and $string eq $match
144 1 0 5 defined $string and defined $unmatch
1 4 1 defined $string and defined $unmatch and $string ne $unmatch
220 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
223 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
226 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
229 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
232 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
235 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
238 0 0 2 defined $x and defined $y
0 1 1 defined $x and defined $y and $x lt $y
241 0 0 2 defined $x and defined $y
0 1 1 defined $x and defined $y and $x le $y
244 0 0 2 defined $x and defined $y
0 1 1 defined $x and defined $y and $x gt $y
247 0 0 2 defined $x and defined $y
0 1 1 defined $x and defined $y and $x ge $y
273 1 0 6 defined $string and not ref $string
494 1 8 1 defined $this and $this + 0 < 0
515 1 6 3 defined $this and $this =~ /$INTEGER/
539 1 6 4 defined $this and $this =~ /$INTEGER/
562 1 6 3 defined $this and $this =~ /$INTEGER/
585 1 7 3 defined $this and $this =~ /$INTEGER/
611 4 0 2 &Scalar::Util::blessed($this) and $this->isa($type)
690 3 3 3 $n and $n > 1
791 4 0 1 &Scalar::Util::blessed($ref) and $ref->isa("HASH")
811 4 0 2 &Scalar::Util::blessed($ref) and $ref->isa("HASH")
840 8 0 2 &Scalar::Util::blessed($ref) and $ref->isa("ARRAY")
860 4 0 2 &Scalar::Util::blessed($ref) and $ref->isa("ARRAY")
889 4 0 0 &Scalar::Util::blessed($ref) and $ref->isa("ARRAY")
893 2 0 7 &Scalar::Util::blessed($i) and $i->isa($type)
927 4 0 1 &Scalar::Util::blessed($ref) and $ref->isa("ARRAY")
930 2 0 0 &Scalar::Util::blessed($val) and $val->isa("HASH")
954 5 0 1 &Scalar::Util::blessed($ref) and $ref->isa("CODE")
975 0 0 0 &Scalar::Util::blessed($ref) and $ref->isa("DateTime")
1007 2 0 0 &Scalar::Util::blessed($haystack) and $haystack->isa("ARRAY")
1068 0 0 0 &Scalar::Util::blessed($hash) and $hash->isa("HASH")
1116 0 0 0 &Scalar::Util::blessed($hash) and $hash->isa("HASH")
1162 1 0 0 &Scalar::Util::blessed($hash) and $hash->isa("HASH")
1201 1 0 0 &Scalar::Util::blessed($hash) and $hash->isa("HASH")
1310 1 1 1 defined $wantarray and not $wantarray

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
253 10 61 0 $why //= "Failed: " . ($x // "undef") . " " . $op . " " . ($y // "undef")
791 2 5 0 ref $ref eq "HASH" or &Scalar::Util::blessed($ref) and $ref->isa("HASH")
811 4 6 0 ref $ref eq "HASH" or &Scalar::Util::blessed($ref) and $ref->isa("HASH")
840 3 10 0 ref $ref eq "ARRAY" or &Scalar::Util::blessed($ref) and $ref->isa("ARRAY")
860 5 6 0 ref $ref eq "ARRAY" or &Scalar::Util::blessed($ref) and $ref->isa("ARRAY")
889 6 0 4 ref $ref eq "ARRAY" or &Scalar::Util::blessed($ref) and $ref->isa("ARRAY")
893 7 0 2 &Scalar::Util::blessed($i) and $i->isa($type) or ref $i eq $type
927 3 5 0 ref $ref eq "ARRAY" or &Scalar::Util::blessed($ref) and $ref->isa("ARRAY")
930 3 0 2 ref $val eq "HASH" or &Scalar::Util::blessed($val) and $val->isa("HASH")
954 1 6 0 ref $ref eq "CODE" or &Scalar::Util::blessed($ref) and $ref->isa("CODE")
975 0 0 0 ref $ref eq "DateTime" or &Scalar::Util::blessed($ref) and $ref->isa("DateTime")
1007 10 0 2 ref $haystack eq "ARRAY" or &Scalar::Util::blessed($haystack) and $haystack->isa("ARRAY")
1068 10 0 0 ref $hash eq "HASH" or &Scalar::Util::blessed($hash) and $hash->isa("HASH")
1116 6 0 0 ref $hash eq "HASH" or &Scalar::Util::blessed($hash) and $hash->isa("HASH")
1162 8 0 1 ref $hash eq "HASH" or &Scalar::Util::blessed($hash) and $hash->isa("HASH")
1201 14 0 1 ref $hash eq "HASH" or &Scalar::Util::blessed($hash) and $hash->isa("HASH")

xor 4 conditions

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