Condition Coverage

lib/String/Fuzzy.pm
Criterion Covered Total %
condition 32 61 52.4


and 3 conditions

line !l l&&!r l&&r condition
50 1 0 1 defined $query && defined $choices
69 1 0 1 defined $query && defined $choices
87 2 0 0 ref $needle and not overload::Method($needle, "\"\"")
2 0 0 ref $haystack and not overload::Method($haystack, "\"\"")
125 4 0 0 ref $s1 and not overload::Method($s1, "\"\"")
4 0 0 ref $s2 and not overload::Method($s2, "\"\"")
167 382 1 1 ref $s1 and not overload::Method($s1, "\"\"")
383 0 0 ref $s2 and not overload::Method($s2, "\"\"")
180 2 1 371 length($str1 // "") and length($str2 // "")
196 1 0 0 ref $s1 and not overload::Method($s1, "\"\"")
1 0 0 ref $s2 and not overload::Method($s2, "\"\"")
234 1 0 0 ref $s1 and not overload::Method($s1, "\"\"")
1 0 0 ref $s2 and not overload::Method($s2, "\"\"")

or 2 conditions

line l !l condition
46 1 1 $opts{'scorer'} || \&String::Fuzzy::ratio
64 1 1 $opts{'scorer'} || \&String::Fuzzy::ratio
65 0 2 $opts{'limit'} || 1
180 374 0 $str1 // ""
372 0 $str2 // ""

or 3 conditions

line l !l&&r !l&&!r condition
50 1 0 1 not defined $query && defined $choices or ref $choices ne "ARRAY"
69 1 0 1 not defined $query && defined $choices or ref $choices ne "ARRAY"
101 0 0 2 $nlen == 0 or $hlen == 0
107 0 0 10 $window < 3 or $window > $hlen