blib/lib/PDL/IO/Pnm.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 54 | 53.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
286 | 26 | 0 | 71 | $pgot < $params and $line = readline PNM |
289 | 45 | 0 | 71 | not $line =~ /^\s*$/ and $pgot < $params |
317 | 0 | 0 | 26 | $pdl->getndims == 1 and $pdl->getdim(0) == 0 |
0 | 24 | 2 | $pdl->getndims == 1 and $pdl->getdim(0) == 0 and $isrgb | |
387 | 22 | 2 | 0 | $type =~ /PPM/ and $#Dims != 2 || $Dims[0] != 3 |
389 | 2 | 22 | 0 | $type =~ /P[G,B]M/ and $#Dims != 1 |
393 | 0 | 24 | 0 | $pdl->get_datatype != $PDL_B || $pdl->get_datatype != $PDL_US and $pdl->min < 0 |
399 | 3 | 13 | 8 | defined $raw and not $raw |
450 | 10 | 0 | 6 | 255 < $max and $max < 65536 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
52 | 0 | 0 | 36 | $type == $PDL_S or $type == $PDL_L |
250 | 0 | 0 | 26 | $#_ < 0 or $#_ > 2 |
312 | 0 | 0 | 26 | $dims[0] <= 0 or $dims[1] <= 0 |
338 | 8 | 0 | 10 | $type == $PDL_US or $pdl->type == ushort() |
387 | 0 | 0 | 2 | $#Dims != 2 || $Dims[0] != 3 |
391 | 0 | 0 | 24 | $pdl->get_datatype == $PDL_F or $pdl->get_datatype == $PDL_D |
393 | 8 | 16 | 0 | $pdl->get_datatype != $PDL_B || $pdl->get_datatype != $PDL_US |
398 | 16 | 8 | 0 | $pdl->get_datatype == $PDL_B or $pdl->get_datatype == $PDL_US |
24 | 0 | 0 | $pdl->get_datatype == $PDL_B or $pdl->get_datatype == $PDL_US or $type =~ /PBM/ |