Branch Coverage

blib/lib/Statistics/SDT.pm
Criterion Covered Total %
branch 93 140 66.4


line true false branch
160 18 14 if (scalar @args)
161 0 18 ref $args[0] ? :
168 59 175 if (defined $href->{$arg})
169 0 59 if ($arg eq 'states') { }
197 43 29 unless (defined $self->{$_})
198 1 42 if (is_float($$self{$counts_dep{$_}[0]}) and is_float($$self{$counts_dep{$_}[1]})) { }
218 21 15 unless (defined $self->{$_})
219 21 0 if (is_float($$self{$trials_dep{$_}[0]}) and is_float($$self{$trials_dep{$_}[1]})) { }
239 9 19 if (not defined $self->{$_} and defined $$self{$rates_dep{$_}[0]} and $$self{$rates_dep{$_}[1]})
306 8 5 if (scalar @args == 1) { }
5 0 elsif (scalar @args > 1) { }
309 2 6 if (/^h/imsx)
310 6 2 if (/^f/imsx)
311 0 8 if (/^m/imsx)
312 0 8 if (/^c/imsx)
322 2 4 ref $params{$_} ? :
324 3 3 if (/^h/imsx)
325 3 0 if (/^f/imsx)
326 0 0 if (/^m/imsx)
327 0 0 if (/^c/imsx)
336 1 4 if (scalar @args > 1) { }
2 2 elsif (scalar @args == 1) { }
345 2 0 _valid_p($args[0]) ? :
353 1 8 if (scalar @args > 1) { }
2 6 elsif (scalar @args == 1) { }
365 2 0 _valid_p($args[0]) ? :
376 0 0 unless (is_float($self->{'signal_trials'}) and is_float($self->{'misses'}))
391 0 0 unless (is_float($self->{'signal_trials'}) and is_float($self->{'correct_rejections'}))
404 3 8 unless (defined $correction)
409 0 11 unless defined $count and defined $trials
412 0 11 if not is_int($trials) or $trials == 0
414 0 11 if ($correction > 1) { }
420 11 0 if ($correction != 0)
455 1 0 &all(sub { hascontent($_); } , $d, $c) ? :
474 1 0 &all(sub { hascontent($_); } , $d, $c) ? :
575 13 2 if (/^d|f/imsx)
576 1 14 if (/^a[p\b]/imsx)
577 1 14 if (/^ad/imsx)
596 8 5 if (defined $m and $m >= 2) { }
0 5 elsif (&all(sub { defined $args{$_}; } , 'stdev_n', 'stdev_s')) { }
600 2 6 $self->{'method'} eq 'smith' ? :
607 0 0 &all(sub { hascontent($_); } , $h, $f) ? :
611 5 0 &all(sub { hascontent($_); } , $h, $f) ? :
621 0 5 if (not $hr || $far or $hr == 1 and $far == 1) { }
635 0 0 if (not $hr || $far or $hr == 1 and $far == 1) { }
651 1 1 if ($m < 12) { }
674 0 1 if &any(sub { nocontent($_); } , $h, $f)
676 1 0 if ($h >= $f) { }
690 0 1 if &any(sub { nocontent($_); } , $h, $f)
694 0 1 if (not $h || $f or $h == 1 and $f == 1) { }
761 1 6 if (/^b|li/imsx)
762 1 6 if (/^lo/imsx)
763 4 3 if (/^c|d/imsx)
764 1 6 if (/^g/imsx)
772 0 1 if &any(sub { nocontent($_); } , $h, $f)
780 0 1 if &any(sub { nocontent($_); } , $h, $f)
787 0 4 if &any(sub { nocontent($_); } , $h, $f)
794 0 1 if &any(sub { nocontent($_); } , $h, $f)
814 0 1 if &any(sub { nocontent($_); } , $d, $c)
843 2 0 if (is_float($self->rate('far'))) { }
848 0 0 if (&all(sub { hascontent($_); } , $d, $c))
852 2 0 hascontent($xc) ? :
859 0 3 defined $params{'d'} ? :
860 0 3 defined $params{'c'} ? :
873 0 11 if (not $rate) { }
5 6 elsif ($rate == 1) { }
887 0 41 unless is_float($val)
888 26 15 $lim ? :
893 2 4 !($p =~ /^ 0 ? [.] \d+ $/msx) || ($p < 0 || $p > 1) ? :
898 3 1 $v >= 0 ? :