Branch Coverage

blib/lib/Mock/Data/Set.pm
Criterion Covered Total %
branch 23 46 50.0


line true false branch
13 2 17 @_ == 1 && ref $_[0] eq 'ARRAY' ? :
0 19 @_ == 1 && ref $_[0] eq 'HASH' ? :
21 0 2 if @_ & 1
33 131 0 unless @_
35 0 0 if $#{$$self{'items'};} != $#$val
41 118 0 unless @_
51 7 101 if (not $self->weights) { }
59 60 81 if ($r < $tbl->[$mid]) { }
62 69 32 $max > $min && $tbl->[$max] <= $r ? :
65 104 4 unless ref $cmp_item and ref($cmp_item)->can('generate')
90 2 3 if (ref $_ and ref($_)->can('generate'))
92 2 0 ref $_ && ref($_)->can('generate') ? :
97 5 0 if (not $self->weights) { }
102 2 0 $compiled[$pick] ? :
103 3 2 !@compiled ? :
112 0 0 if ($r < $odds_table->[$mid]) { }
115 0 0 $max > $min && $odds_table->[$max] <= $r ? :
116 0 0 $compiled[$pick] ? :
126 1 0 if ($peer->isa('Mock::Data::Set')) { }
129 0 1 if ($weights or $peer_weights)
130 0 0 $weights ? :
0 0 $peer_weights ? :
138 0 0 $weights && @$weights ? :