Branch Coverage

blib/lib/Algorithm/SetSimilarity/Join/Datum.pm
Criterion Covered Total %
branch 58 70 82.8


line true false branch
17 2 34 if exists $$param{'data_type'}
24 62 0 if (exists $$self{'datum'})
25 60 2 if (defined $$self{'datum'}[0] and ref $$self{'datum'}[0] eq 'ARRAY')
26 30 30 if (ref $$self{'datum'}[0][0] eq 'ARRAY') { }
27 30 0 if $self->check_pushability($$self{'datum'}[0][0])
29 30 0 if $self->check_pushability($$self{'datum'}[0])
39 115 5 if defined $set and ref $set eq 'ARRAY' and defined $$set[0] and ref $$set[0] eq ''
40 55 123 if defined $set and ref $set eq 'HASH' and scalar keys %$set > 0
47 2 0 if (defined $sets and ref $sets eq 'HASH')
49 6 0 if ($key >= 0)
62 19 22 if (ref $set eq 'ARRAY') { }
22 0 elsif (ref $set eq 'HASH') { }
65 11 62 if (&Scalar::Util::looks_like_number($$set[$i])) { }
70 19 54 if ($type eq '') { }
4 50 elsif ($type ne $tmp_type) { }
83 21 58 if (&Scalar::Util::looks_like_number($key)) { }
88 22 57 if ($type eq '') { }
4 53 elsif ($type ne $tmp_type) { }
95 7 68 if $i >= $max_check_elements
98 33 8 if $is_estimate
105 54 0 if (defined $set and ref $set eq 'ARRAY')
107 53 1 if ($#$set > 0)
108 13 40 unless exists $$self{'data_type'}
109 6 47 if ($$self{'data_type'} eq 'number') { }
123 10 2 if ($self->check_pushability($set) and $id < $self->get_num)
124 5 5 if (ref $set eq 'ARRAY') { }
5 0 elsif (ref $set eq 'HASH') { }
138 24 0 if (defined $sets and ref $sets eq 'ARRAY')
153 16 39 unless exists $$self{'data_type'}
154 6 49 if ($$self{'data_type'} eq 'number') { }
165 98 3 if ($self->check_pushability($set))
166 49 49 if (ref $set eq 'ARRAY') { }
49 0 elsif (ref $set eq 'HASH') { }
180 150 0 if defined $$self{'datum'}[$id]
187 24 0 if ($self->get_num > 1)