Condition Coverage

blib/lib/Astro/FITS/Header/Item.pm
Criterion Covered Total %
condition 53 87 60.9


and 3 conditions

line !l l&&!r l&&r condition
153 34 981 0 defined $self->type and $self->type eq 'HEADER'
332 985 0 207 ref $hash{'Card'} and $hash{'Card'}->isa('Astro::FITS::Header::Item')
465 621 328 11 substr($card, 8, 2) ne '= ' and not $keyword =~ /^HIERARCH/
653 2 0 661 defined $val1 and defined $val2
672 26 195 0 defined $val1 and not defined $val2
26 195 0 defined $val2 and not defined $val1
681 0 0 7 $val1 and $val2
746 0 152 0 defined $type and $type eq 'HEADER'
755 0 149 3 defined $type and $type eq 'END'
0 149 0 defined $type and $type eq 'BLANK'
0 139 10 defined $type and $type eq 'COMMENT'
789 2 0 5 $value && $value ne 'F'
839 1 0 138 defined $comment and length $comment > 0

or 3 conditions

line l !l&&r !l&&!r condition
70 0 1245 0 ref $proto || $proto
350 20 0 0 $self->keyword || $self->value
0 2 18 not $self->keyword or $self->keyword =~ /^(COMMENT|HISTORY)$/
433 328 0 657 $keyword eq 'HIERARCH' or $card =~ /^\s+HIERARCH/
465 18 1 960 $keyword eq 'COMMENT' or $keyword eq 'HISTORY'
19 271 689 $keyword eq 'COMMENT' or $keyword eq 'HISTORY' or substr($card, 8, 2) ne '= ' and not $keyword =~ /^HIERARCH/
653 0 0 2 defined $val1 || defined $val2
672 0 0 221 defined $val1 and not defined $val2 or defined $val2 and not defined $val1
674 195 0 26 defined $val1 or defined $val2
676 58 116 21 $type eq 'FLOAT' or $type eq 'INT'
681 0 0 0 $val1 || $val2
7 0 0 $val1 and $val2 or not $val1 || $val2
755 0 0 0 defined $type || defined $value || defined $comment
784 49 48 42 $type eq 'INT' or $type eq 'FLOAT'
97 7 35 $type eq 'INT' or $type eq 'FLOAT' or $type eq 'LOGICAL'
55 2 33 $type eq 'INT' or $type eq 'FLOAT' or $type eq 'LOGICAL' or $type eq 'UNDEF'