| lib/PDL/IO/Pnm.pd | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 26 | 45 | 57.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 91 | 16 | 27 | 0 | ref $_[1] && UNIVERSAL::isa($_[1], 'PDL') |
| 114 | 43 | 0 | 117 | $pgot < $params and defined(my $line = readline $fh) |
| 117 | 74 | 0 | 117 | not $line =~ /^\s*$/ and $pgot < $params |
| 133 | 0 | 37 | 6 | $pdl->isnull and $isrgb |
| 148 | 0 | 16 | 27 | not isbigendian() and $israw |
| 192 | 35 | 2 | 0 | $type =~ /PPM/ and $#Dims != 2 || $Dims[0] != 3 |
| 194 | 2 | 35 | 0 | $type =~ /P[GB]M/ and $#Dims != 1 |
| 203 | 5 | 16 | 16 | defined $raw && !$raw |
| 241 | 0 | 16 | 21 | not isbigendian() and $israw |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 89 | 0 | 0 | 43 | not @_ or @_ > 3 |
| 126 | 0 | 0 | 43 | $dims[0] <= 0 or $dims[1] <= 0 |
| 192 | 0 | 0 | 2 | $#Dims != 2 || $Dims[0] != 3 |
| 199 | 0 | 0 | 37 | $pdl->min < 0 or $max > 65535 |
| 203 | 21 | 0 | 0 | $pdl->get_datatype == $PDL::IO::Pnm::PDL_B || $pdl->get_datatype == $PDL::IO::Pnm::PDL_US || $type eq 'PBM' |
| 247 | 16 | 21 | 0 | $already_open || close $fh |