Branch Coverage

blib/lib/Text/MostFreqKDistance.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
63 1 11 unless defined $a
64 1 10 unless defined $b
65 1 9 unless defined $k
66 1 8 unless $k =~ /^[0-9]+$/
67 1 7 unless defined $d
68 1 6 unless $d =~ /^[0-9]+$/
75 0 12 if $_a->{'key'} eq 'NULL'
77 6 18 if ($_a->{'key'} eq $_b->{'key'})
78 5 1 if ($_a->{'value'} == $_b->{'value'}) { }
109 1 15 unless defined $string
110 1 14 unless defined $k
111 2 12 unless $k =~ /^[0-9]+$/
141 30 106 if defined $seen and exists $seen->{$_}
142 46 60 if ($chars{$_} == $chars{$chars[$j]})