Condition Coverage

blib/lib/Astro/FITS/Header/Item.pm
Criterion Covered Total %
condition 52 87 59.7


and 3 conditions

line !l l&&!r l&&r condition
153 31 534 0 defined $self->type and $self->type eq 'HEADER'
332 534 0 204 ref $hash{'Card'} and $hash{'Card'}->isa('Astro::FITS::Header::Item')
465 494 8 11 substr($card, 8, 2) ne '= ' and not $keyword =~ /^HIERARCH/
653 2 0 655 defined $val1 and defined $val2
672 26 193 0 defined $val1 and not defined $val2
26 193 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 790 0 ref $proto || $proto
350 19 0 0 $self->keyword || $self->value
0 2 17 not $self->keyword or $self->keyword =~ /^(COMMENT|HISTORY)$/
433 8 0 526 $keyword eq 'HIERARCH' or $card =~ /^\s+HIERARCH/
465 15 1 513 $keyword eq 'COMMENT' or $keyword eq 'HISTORY'
16 0 513 $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 219 defined $val1 and not defined $val2 or defined $val2 and not defined $val1
674 193 0 26 defined $val1 or defined $val2
676 58 114 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'