Branch Coverage

blib/lib/Statistics/SDT.pm
Criterion Covered Total %
branch 62 106 58.4


line true false branch
172 4 16 if (scalar @_)
173 0 4 ref $_[0] ? :
175 14 34 if defined $$args{$_}
182 2 4 if (not defined $$self{$_} and $$self{$counts_dep{$_}[0]} and defined $$self{$counts_dep{$_}[1]})
187 0 2 if (not defined $$self{$_} and defined $$self{$trials_dep{$_}[0]} and defined $$self{$trials_dep{$_}[1]})
192 4 2 if (not defined $$args{$_} and defined $$self{$rates_dep{$_}[0]} and $$self{$rates_dep{$_}[1]})
242 0 1 if (scalar @_ == 1) { }
1 0 elsif (scalar @_ > 1) { }
245 0 0 if (/^h/i)
246 0 0 if (/^f/i)
247 0 0 if (/^m/i)
248 0 0 if (/^c/i)
255 0 2 ref $params{$_} ? :
257 1 1 if (/^h/i)
258 1 0 if (/^f/i)
259 0 0 if (/^m/i)
260 0 0 if (/^c/i)
268 0 1 if (@_ > 1) { }
1 0 elsif (@_ == 1) { }
274 1 0 _valid_p($_[0]) ? :
281 0 1 if (@_ > 1) { }
1 0 elsif (@_ == 1) { }
287 1 0 _valid_p($_[0]) ? :
388 2 8 ref $_[0] ? :
390 6 4 if (/^d/i)
391 2 2 if (/^f/i)
392 1 1 if (/^a(p|\b)/i)
393 1 0 if (/^ad/i)
404 0 6 if ($m > 2) { }
411 0 6 if (not $h || $f or $h == 1 and $f == 1) { }
427 0 2 unless defined $h
428 0 2 unless defined $m
429 1 1 if ($$self{'method'} eq 'smith') { }
430 1 0 if ($m < 12) { }
459 1 0 if ($h >= $f) { }
473 0 1 if (not $h || $f or $h == 1 and $f == 1) { }
536 0 8 ref $_[0] ? :
538 1 7 if (/^b|li/i)
539 1 6 if (/^lo/i)
540 5 1 if (/^c|d/i)
541 1 0 if (/^g/i)
567 1 0 if ($h >= $f) { }
653 0 8 if defined $params{$_}
655 4 0 unless defined $dc{'d'}
656 4 0 unless defined $dc{'c'}
664 0 4 unless defined $correction
667 0 4 unless defined $count and defined $trials
669 0 4 if ($correction > 1) { }
674 2 2 unless ($correction == 0)
688 0 2 if (not $rate) { }
1 1 elsif ($rate == 1) { }
701 24 0 $_[0] ? :
706 0 2 !($p =~ /^0?\.\d+$/) || ($p < 0 || $p > 1) ? :