Branch Coverage

blib/lib/Data/WeightedRoundRobin.pm
Criterion Covered Total %
branch 33 40 82.5


line true false branch
23 28 13 if $list
29 2 79 unless defined $data
34 47 32 if (ref $data eq 'HASH') { }
36 0 47 unless defined $value
37 0 47 if defined $weight and $weight < 0
38 26 21 unless defined $key
39 3 44 unless defined $weight
44 1 31 if (ref $data eq 'REF' and ref $$data eq 'HASH')
56 1 46 unless $list
90 1 0 if ($data->{'key'} eq $value->{'key'})
96 3 1 if ($added)
111 4 0 if ($data->{'key'} eq $value->{'key'})
118 4 1 if ($replaced)
132 2 3 if (not $data->{'key'} eq $value) { }
140 3 2 if ($removed)
150 7 66 unless $list_num
154 12 54 if $weights == 0
157 54 0 if ($list_num < $self->{'btree_border'}) { }
160 54 32 if $rweight >= $rr->{'range'}
167 0 0 if ($rrlist->[$mid]{'range'} <= $rweight) { }