Branch Coverage

blib/lib/Statistics/Descriptive/Weighted.pm
Criterion Covered Total %
branch 70 88 79.5


line true false branch
47 4 17 if (not ref $_[0] eq 'ARRAY' or exists $_[1] and !(ref $_[1] eq 'ARRAY') || @{$_[0];} != @{$_[1];})
68 4 243 unless (defined $$weight[$_])
71 1 246 if ($$weight[$_] <= 0)
83 243 3 if (not defined $$self{'max'} or $$datum[$_] > $$self{'max'})
86 15 231 if (not defined $$self{'min'} or $$datum[$_] < $$self{'min'})
90 1 17 if $weighterror
93 14 4 if ($$self{'count'} > 1)
104 2 10 if (@_ > 0)
171 0 6 if (not ref $_[0] eq 'ARRAY' or exists $_[1] and !(ref $_[1] eq 'ARRAY') || @{$_[0];} != @{$_[1];})
182 5 217 unless (defined $$weight[$_])
185 221 1 if ($$weight[$_] > 0) { }
189 9 212 if ($newweight > $$self{'maxweight'})
198 1 8 if $weighterror
205 80 143 if exists $$self{'_reserved'}{$key}
207 135 8 if exists $$self{'_permitted'}{$key}
215 221 11 if (@_ == 1) { }
11 0 elsif (@_ == 0) { }
217 1 220 defined $val ? :
230 440 2 if (@_ == 1) { }
2 0 elsif (@_ == 0) { }
232 219 221 defined $val ? :
248 1 220 $value ? :
250 1 220 $value ? :
253 221 0 if (@_ == 2) { }
291 3 8 unless $$self{'did_cdf'}
292 11 0 if (@_ == 1) { }
294 0 11 if $proportion < 0 or $proportion > 1
307 2 2 unless $$self{'did_cdf'}
308 0 4 if (@_ != 1)
312 0 4 if ($percent < 0 or $percent > 100)
316 0 4 if ($percent < $$self{'percentile'}->minimum) { }
0 4 elsif ($percent > $$self{'percentile'}->maximum) { }
327 3 1 if ($gekey != $lekey)
340 0 2 if defined $$self{'median'}
351 0 11 unless $$self{'did_cdf'}
352 11 0 if (@_ == 1) { }
354 1 10 if $$self{'data'}->minimum > $value
367 0 4 unless $$self{'did_cdf'}
368 4 0 if (@_ == 1) { }
370 1 3 if $$self{'data'}->minimum > $value
383 0 6 unless $$self{'did_cdf'}
384 6 0 if (@_ == 1) { }
386 3 3 if $$self{'data'}->maximum < $value
399 1 0 unless $$self{'did_cdf'}