Condition Coverage

blib/lib/GDS2.pm
Criterion Covered Total %
condition 78 234 33.3


and 3 conditions

line !l l&&!r l&&r condition
549 0 8 0 $fileName and $fileHandle
701 5 0 0 defined $markEnd and $markEnd
707 4 0 1 defined $pad and $pad > 0
910 2 0 0 defined $unitWidth and $unitWidth >= 0
914 0 0 2 defined $widthReal and $widthReal >= 0
1501 0 0 0 defined $data[0] and $data[0] ne ''
0 0 0 defined $dataString and (defined $data[0] and $data[0] ne '')
1537 0 0 0 defined $data[0] and $data[0] ne ''
1731 255 0 0 defined $data[0] and $data[0] ne ''
62 255 0 defined $dataString and (defined $data[0] and $data[0] ne '')
1853 277 0 40 defined $data[0] and $data[0] ne ''
2100 229 3 24 not $self->{'INDATA'} and $self->{'INHEADER'} != -1
2408 3 3 3 $inText and $self->{'RecordType'} != 26
2496 110 11 44 $compact and $i
121 34 10 $compact and $i and $i == $#{$$self{'RecordData'};}

or 3 conditions

line l !l&&r !l&&!r condition
541 8 0 0 $class || ref $class || $GDS2::DefaultClass
553 8 0 0 $fileName or $fileHandle
593 0 0 8 $resolution <= 0 or not $resolution =~ /^\d+$/
922 2 0 0 defined $xy or defined $xyInt
946 0 0 2 $bgnExtn or $endExtn
1053 2 0 0 defined $xy or defined $xyInt
1075 0 2 0 $xy->[0] != $$xy[$#$xy - 1] or $xy->[1] != $$xy[$#$xy]
1123 2 0 0 defined $xy or defined $xyInt
1135 2 0 0 not defined $reflect or $reflect <= 0
1145 2 0 0 not defined $mag or $mag <= 0
1221 2 0 0 defined $xy or defined $xyInt
1233 2 0 0 not defined $reflect or $reflect <= 0
1243 2 0 0 not defined $mag or $mag <= 0
1270 0 0 2 not defined $columns or $columns <= 0
1279 0 0 2 not defined $rows or $rows <= 0
1385 0 0 0 not defined $reflect or $reflect <= 0
1396 0 0 0 not defined $font or $font < 0
0 0 0 not defined $font or $font < 0 or $font > 3
1420 0 0 0 not defined $mag or $mag <= 0
1440 0 0 0 defined $font or defined $top
0 0 0 defined $font or defined $top or defined $middle
0 0 0 defined $font or defined $top or defined $middle or defined $bottom
0 0 0 defined $font or defined $top or defined $middle or defined $bottom or defined $bottom
0 0 0 defined $font or defined $top or defined $middle or defined $bottom or defined $bottom or defined $left
0 0 0 defined $font or defined $top or defined $middle or defined $bottom or defined $bottom or defined $left or defined $center
0 0 0 defined $font or defined $top or defined $middle or defined $bottom or defined $bottom or defined $left or defined $center or defined $right
1559 0 0 0 $recordDataType == 1 or $recordDataType == 6
1763 0 0 0 $recordDataType == 2 or $recordDataType == 1
1876 27 30 198 $recordDataType == 1 or $recordDataType == 6
2134 9 3 240 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9
12 9 231 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8
12 9 222 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10
18 0 222 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10 or $self->{'RecordType'} == 11
2143 3 9 240 $self->{'RecordType'} == 2 or $self->{'RecordType'} == 6
2148 3 9 240 $self->{'RecordType'} == 1 or $self->{'RecordType'} == 5
2382 6 2 162 $self->{'RecordType'} == 8 or $self->{'RecordType'} == 9
8 6 156 $self->{'RecordType'} == 8 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 12
8 6 150 $self->{'RecordType'} == 8 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 12 or $self->{'RecordType'} == 10
12 0 150 $self->{'RecordType'} == 8 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 12 or $self->{'RecordType'} == 10 or $self->{'RecordType'} == 11
2465 4 4 40 $dateFld eq '4' or $dateFld eq '10'
2540 14 3 68 $G_gdtString =~ /}$/ or $G_gdtString =~ /^(gds2|lib|m).*\d$/
17 3 65 $G_gdtString =~ /}$/ or $G_gdtString =~ /^(gds2|lib|m).*\d$/ or $G_gdtString =~ /^cell.*'$/
2646 0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10 or $self->{'RecordType'} == 11
2648 0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10 or $self->{'RecordType'} == 11
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10 or $self->{'RecordType'} == 11 or $self->{'RecordType'} == 17
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10 or $self->{'RecordType'} == 11 or $self->{'RecordType'} == 17 or $self->{'RecordType'} == 7
0 0 0 $self->{'RecordType'} == 12 or $self->{'RecordType'} == 9 or $self->{'RecordType'} == 8 or $self->{'RecordType'} == 10 or $self->{'RecordType'} == 11 or $self->{'RecordType'} == 17 or $self->{'RecordType'} == 7 or $self->{'RecordType'} == 4
2848 0 0 0 not defined $columns or $columns <= 0
2857 0 0 0 not defined $rows or $rows <= 0
3142 0 0 0 not defined $mag or $mag <= 0
3218 0 0 0 not defined $font or $font < 0
0 0 0 not defined $font or $font < 0 or $font > 3
3351 0 0 0 not defined $reflect or $reflect <= 0
3539 0 0 0 not defined $width or $width <= 0
3565 0 0 0 defined $xy or defined $xyInt
4521 0 0 0 $dt == 2 or $dt == 3
0 0 0 $dt == 2 or $dt == 3 or $dt == 5