Condition Coverage

blib/lib/PDLA/Transform.pm
Criterion Covered Total %
condition 51 166 30.7


and 3 conditions

line !l l&&!r l&&r condition
311 0 0 21 UNIVERSAL::isa($me, 'PDLA::Transform') and UNIVERSAL::isa($from, 'PDLA')
312 0 0 21 defined $me->{'func'} and ref $me->{'func'} eq 'CODE'
359 0 0 28 UNIVERSAL::isa($me, 'PDLA::Transform') and UNIVERSAL::isa($data, 'PDLA')
360 0 0 28 defined $me->{'inv'} and ref $me->{'inv'} eq 'CODE'
743 9 0 18 UNIVERSAL::isa($me, 'PDLA') and UNIVERSAL::isa($in, 'PDLA::Transform')
749 0 0 27 defined $in and UNIVERSAL::isa($in, 'PDLA')
759 11 0 16 ref $tmp eq 'HASH' and not defined $opt
847 23 4 0 defined $out->gethdr and $out->hdr->{'NAXIS'}
872 0 0 0 $orange->dim(1) == $nd and $orange->ndims == 2
915 0 0 0 $irange->dim(1) == $nd and $irange->ndims == 2
1111 11 1 0 not $bound =~ /^[0123ftepx]+$/ and $bound =~ /^([0123ftepx])/i
1139 0 11 1 $PDLA::Bad::Status and $in->badflag
1196 0 0 0 UNIVERSAL::isa($data, 'PDLA::Transform') and UNIVERSAL::isa($me, 'PDLA')
1360 0 0 40 defined $t->{'func'} and ref $t->{'func'} eq 'CODE'
1372 0 0 24 defined $t->{'inv'} and ref $t->{'inv'} eq 'CODE'
1597 0 0 0 not defined $o and ref $source eq 'HASH'
1629 0 0 0 ref $data and UNIVERSAL::isa($data, 'PDLA')
1723 0 0 0 $i % 1000 == 0 and $PDLA::verbose || $PDLA::debug || $debug
1854 7 20 2 $#_ % 2 == 0 and not defined $_[-1]
1901 0 0 8 defined $me->{'params'}{'rot'} and UNIVERSAL::isa($me->{'params'}{'rot'}, 'PDLA')
1907 3 0 5 defined $scale and UNIVERSAL::isa($scale, 'PDLA')
3 2 3 defined $scale and UNIVERSAL::isa($scale, 'PDLA') and $scale->getndims > 0
0 0 5 defined $me->{'params'}{'pre'} and UNIVERSAL::isa($me->{'params'}{'pre'}, 'PDLA')
0 2 3 defined $me->{'params'}{'pre'} and UNIVERSAL::isa($me->{'params'}{'pre'}, 'PDLA') and $me->{'params'}{'pre'}->getndims > 0
0 0 2 defined $me->{'params'}{'post'} and UNIVERSAL::isa($me->{'params'}{'post'}, 'PDLA')
0 2 0 defined $me->{'params'}{'post'} and UNIVERSAL::isa($me->{'params'}{'post'}, 'PDLA') and $me->{'params'}{'post'}->getndims > 0
1952 0 29 0 UNIVERSAL::isa($rot, 'PDLA') and $rot->nelem > 1
1969 29 0 0 $rot != 0 and $me->{'params'}{'matrix'}->dim(0) > 1
2199 0 0 19 defined $hdr and UNIVERSAL::isa($hdr, 'PDLA')
2208 2 17 0 $opt->{'ignore_rgb'} and $n == 3
19 0 0 $opt->{'ignore_rgb'} and $n == 3 and $hdr->{'NAXIS3'} == 3
2249 0 19 0 $n == 2 and defined $hdr->{'CROTA'} || defined $hdr->{'CROTA1'} || defined $hdr->{'CROTA2'}
2256 0 0 0 $debug and @hgrab
3218 0 0 0 $p->dims == 3 and all(pdl($p->dims) == pdl(2, 2, 4))

or 2 conditions

line l !l condition
812 0 12 $me->{'odim'} || $me->{'idim'} || 2
971 2 14 (defined $me->{'otype'} ? $me->{'otype'}[$d - 1] : '') || $in->hdr->{"CTYPE$d"} || ''
976 2 14 (defined $me->{'ounit'} ? $me->{'ounit'}[$d - 1] : '') || $in->hdr->{"CUNIT$d"} || $in->hdr->{"CTYPE$d"} || ''
1018 0 0 (defined $me->{'otype'} ? $me->{'otype'}[$d - 1] : '') || $in->hdr->{"CTYPE$d"} || ''
1023 0 0 (defined $me->{'ounit'} ? $me->{'ounit'}[$d - 1] : '') || $in->hdr->{"CUNIT$d"} || $in->hdr->{"CTYPE$d"} || ''
1678 0 0 $p->{'enl_scale'} || 10
2407 0 0 _opt($o, ['n', 'name', 'Name']) || 'code'
2410 0 0 _opt($o, ['p', 'params', 'Params']) || {}
2411 0 0 _opt($o, ['i', 'idim']) || 2
2412 0 0 _opt($o, ['o', 'odim']) || 2
2413 0 0 _opt($o, ['itype']) || []
2414 0 0 _opt($o, ['otype']) || []
2415 0 0 _opt($o, ['iunit']) || []
2416 0 0 _opt($o, ['ounit']) || []

or 3 conditions

line l !l&&r !l&&!r condition
847 0 19 8 defined $out->gethdr and $out->hdr->{'NAXIS'} or $nofits
887 3 0 5 $rectify or ref($f_in) =~ /Linear/i
1434 0 0 0 $c or UNIVERSAL::isa($y, 'PDLA::Transform')
1665 0 0 0 $PDLA::verbose or $PDLA::debug
0 0 0 $PDLA::verbose or $PDLA::debug or $debug
1697 0 0 0 $PDLA::verbose or $PDLA::debug
0 0 0 $PDLA::verbose or $PDLA::debug or $debug
1723 0 0 0 $PDLA::verbose || $PDLA::debug || $debug
2203 0 0 19 not defined $hdr or ref $hdr ne 'HASH'
0 0 19 not defined $hdr or ref $hdr ne 'HASH' or not defined $hdr->{'NAXIS'}
2249 0 10 9 defined $hdr->{'CROTA'} || defined $hdr->{'CROTA1'} || defined $hdr->{'CROTA2'}
3199 0 0 0 $matrix->dims != 2 or $matrix->dim(0) != $matrix->dim(1)