Branch Coverage

blib/lib/Algorithm/SetSimilarity/Join/WMPJoin.pm
Criterion Covered Total %
branch 43 54 79.6


line true false branch
12 0 6 if exists $$param{'is_sorted'}
19 12 1 if ref $datum eq 'Algorithm::SetSimilarity::Join::Datum'
45 11 0 if ($self->check_joinable($datum))
46 11 0 unless exists $$self{'is_sorted'} and $$self{'is_sorted'}
54 11 20 unless $cum_weight[$p]
55 11 20 unless $squared_norm[$p]
62 20 19 unless $cum_weight[$c]
63 20 19 unless $squared_norm[$c]
65 0 39 if $s1 * $threshold > $cum_weight[$c]
80 39 270 if ($$datum{'data_type'} eq 'number') { }
86 170 139 if ($judge == -1) { }
71 68 elsif ($judge == 1) { }
88 165 5 if ($att1 < $s1)
94 71 0 if ($att2 < $s2)
102 62 6 if ($att1 < $s1 and $att2 < $s2)
110 173 136 if $min > $cum_weight[$p] - $c1
111 19 290 if ($match_num + $min < $min_overlap)
116 19 20 unless $match_num >= 1
120 5 24 if ($$datum{'data_type'} eq 'number') { }
127 6 23 if ($judge == -1) { }
0 23 elsif ($judge == 1) { }
128 0 6 if $match_num + ($cum_weight[$p] - $c1) < $min_overlap
130 4 2 if ($att1 < $s1)
135 0 0 if $match_num + ($cum_weight[$c] - $c2) < $min_overlap
137 0 0 if ($att2 < $s2)
145 16 7 if ($att1 < $s1 and $att2 < $s2)
152 2 18 unless $match_num >= $min_overlap + 1