Branch Coverage

blib/lib/Set/Cluster.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
12 0 34 unless ref $self
43 0 4 unless $args{'items'}
44 2 2 if (ref $args{'items'} eq 'ARRAY') { }
2 0 elsif (ref $args{'items'} eq 'HASH') { }
48 1 5 unless $object->can('weight')
65 2 5 if $levels >= scalar @{$$self{'nodes'};}
82 15 26 if ($levels > 0)
100 0 168 unless $$self{'items'}{$a} <=> $$self{'items'}{$b}
118 0 131 unless $totals{$a} <=> $totals{$b}
128 2 2 if ($$self{'item_type'} eq 'HASH') { }
148 7 8 if $seen{$_} == 1
149 2 1 if ($$self{'item_type'} eq 'HASH') { }