Branch Coverage

blib/lib/PDL/DSP/Windows.pm
Criterion Covered Total %
branch 111 262 42.3


line true false branch
192 0 0 if ($expr) { }
195 0 0 if /$expr/i
196 0 0 if @alias = grep(/$expr/i, @{$window_definitions{$_}{'alias'};})
234 145 1 if @_
269 157 2 unless ref $_[0]
270 157 2 unless ref $_[0]
271 75 84 unless ref $_[0] eq 'HASH'
272 75 84 unless ref $_[0]
273 84 75 @_ ? :
275 2 157 unless $name
277 2 157 unless $N
278 149 10 unless defined $params
279 10 149 if defined $params and not ref $params
280 159 0 unless $periodic
281 62 97 $periodic ? :
282 0 159 unless (exists $ws->{$name})
283 0 0 $periodic ? :
322 50 109 defined $self->{'params'} ? :
360 0 2 $n > $opts{'min_bins'} ? :
403 16 0 if $_ eq 'samples' and not defined $self->{'samples'}
404 0 16 if $_ eq 'modfreqs' and not defined $self->{'modfreqs'}
407 0 16 wantarray ? :
426 0 0 $self->{'samples'} ? :
463 0 0 $self->{'modfreqs'} && !$in_opts ? :
507 0 0 if $wd->{'pfn'}
508 0 0 if $wd->{'fn'} and not $wd->{'fn'} =~ /^\*/
509 0 0 if $wd->{'fn'}
516 0 0 ref $wd->{'params'} ? :
0 0 $wd->{'params'} ? :
522 0 0 unless $p
526 0 0 unless $names
538 0 0 unless $ps
557 0 0 unless $HAVE_GNUPLOT
616 0 0 @_ ? :
618 0 0 unless $HAVE_GNUPLOT
626 0 0 if ($coord eq 'nyquist') { }
0 0 elsif ($coord eq 'sample') { }
0 0 elsif ($coord eq 'bin') { }
754 0 2 unless @_ == 1
764 0 2 unless @_ == 1
774 0 3 unless @_ == 1
785 0 2 unless @_ == 1
796 0 3 unless @_ == 1
808 0 2 unless @_ == 1
820 0 2 unless @_ == 1
833 0 2 unless @_ == 1
846 0 2 unless @_ == 1
858 0 2 unless @_ == 1
870 0 2 unless @_ == 2
884 0 2 unless @_ == 2
898 0 2 unless @_ == 4
911 0 2 unless @_ == 4
924 0 2 unless @_ == 5
937 0 2 unless @_ == 5
950 0 2 unless @_ == 6
963 0 2 unless @_ == 6
976 0 2 unless @_ == 1
989 0 2 unless @_ == 1
1002 0 4 unless @_ == 1
1015 0 2 unless @_ == 1
1028 0 3 unless @_ == 1
1040 0 2 unless @_ == 1
1052 0 4 unless @_ == 1
1062 0 2 unless @_ == 1
1072 0 3 unless @_ == 2
1083 0 2 unless @_ == 2
1094 0 2 unless @_ == 2
1103 1 1 if ($N % 2) { }
1135 0 5 unless @_ == 2
1146 0 2 unless @_ == 2
1157 0 3 unless @_ == 1
1167 0 2 unless @_ == 1
1177 0 0 unless @_ == 2
1180 0 0 unless $HAVE_LinearAlgebra
1181 0 0 unless $beta >= 0 and $beta <= $N
1200 0 0 unless @_ == 2
1204 0 0 unless $HAVE_LinearAlgebra
1205 0 0 unless $beta >= 0 and $beta <= $N
1224 0 2 unless @_ == 1
1233 0 2 unless @_ == 1
1242 0 4 unless @_ == 1
1254 0 2 unless @_ == 1
1266 0 2 unless @_ == 2
1277 0 2 unless @_ == 2
1288 0 6 unless @_ == 1
1297 0 2 unless @_ == 1
1306 0 2 unless @_ == 1
1316 0 2 unless @_ == 1
1326 0 2 unless @_ == 2
1337 0 2 unless @_ == 2
1348 0 5 unless @_ == 1
1358 0 2 unless @_ == 1
1368 0 1 unless @_ == 1
1379 0 1 unless @_ == 2
1390 0 0 unless @_ == 2
1401 0 0 unless @_ == 2
1404 0 0 unless $HAVE_BESSEL
1417 0 0 unless @_ == 2
1420 0 0 unless $HAVE_BESSEL
1433 0 3 unless @_ == 1
1439 1 2 if $N % 2
1448 0 2 unless @_ == 1
1454 1 1 unless $N % 2
1463 0 2 unless @_ == 1
1474 0 2 unless @_ == 1
1485 0 0 unless @_ == 1
1498 0 0 unless @_ == 1
1511 0 3 unless @_ == 1
1530 0 2 unless @_ == 1
1549 0 0 unless @_ == 1
1571 0 3 unless @_ == 2
1581 0 2 unless @_ == 2
1591 0 4 unless @_ == 1
1601 0 2 unless @_ == 1
1611 0 4 unless @_ == 1
1620 0 2 unless @_ == 1
1629 0 4 unless @_ == 2
1632 0 4 unless $alpha >= 0 and $alpha <= 1
1634 0 4 if $alpha == 0
1651 0 2 unless @_ == 2
1654 0 2 unless $alpha >= 0 and $alpha <= 1
1656 0 2 if $alpha == 0
1673 0 3 unless @_ == 1
1683 0 2 unless @_ == 1
2192 0 0 if @cin > 7
2223 0 5 unless @_ == 2
2225 4 1 if (ref $x) { }
2227 0 4 if ref $n
2236 0 1 if ref $n
2237 0 1 if abs $x <= 1
2245 0 0 if @ain > 7