Condition Coverage

blib/lib/Image/PBMlib.pm
Criterion Covered Total %
condition 69 156 44.2


and 3 conditions

line !l l&&!r l&&r condition
154 0 0 2 $rc and $peek eq "\n"
474 1 0 19 exists $$pr[$w] and defined $$pr[$w]
484 3 0 37 exists $$pr[$h][$w] and defined $$pr[$h][$w]
600 3 0 46 exists $$pr[$w] and defined $$pr[$w]
610 7 0 73 exists $$pr[$h][$w] and defined $$pr[$h][$w]
745 0 0 0 exists $$pr[$w] and defined $$pr[$w]
755 5 0 95 exists $$pr[$h][$w] and defined $$pr[$h][$w]
860 0 0 0 exists $$pr[$w] and defined $$pr[$w]
877 5 0 52 exists $$pr[$h][$w] and defined $$pr[$h][$w]
1006 2 0 16 exists $$pr[$w] and defined $$pr[$w]
1016 7 0 47 exists $$pr[$h][$w] and defined $$pr[$h][$w]
1146 0 0 0 exists $$pr[$w] and defined $$pr[$w]
1156 12 0 13 exists $$pr[$h][$w] and defined $$pr[$h][$w]
1220 0 6 21 ref $$p_r[0] eq 'ARRAY' and ref $$p_r[0][0] eq ''
0 0 6 ref $$p_r[0][0] eq 'ARRAY' and ref $$p_r[0][0][0] eq ''
1424 0 13 0 exists $$i_r{'error'} and length $$i_r{'error'}
1453 0 0 13 exists $$i_r{'type'} && $$i_r{'type'} =~ /^\d/ && (exists $$i_r{'pixels'} && $$i_r{'pixels'} =~ /^\d/) && (exists $$i_r{'max'} && $$i_r{'max'} =~ /^\d/) && (exists $$i_r{'width'} && $$i_r{'width'} =~ /^\d/) && (exists $$i_r{'height'} && $$i_r{'height'} =~ /^\d/)
1501 0 0 0 exists $$i_r{'error'} and length $$i_r{'error'}
1554 0 0 0 exists $$i_r{'error'} and length $$i_r{'error'}
1560 0 0 0 exists $$i_r{'error'} and length $$i_r{'error'}
1932 0 4 0 defined $a_r and defined $b_r
2057 0 4 0 defined $a_r and defined $b_r
2285 0 2 0 defined $type and defined $w
0 2 0 defined $type and defined $w and defined $h
2301 0 0 14 defined $$hr{'width'} and $$hr{'width'} =~ /^\d+$/
2307 0 0 14 defined $$hr{'height'} and $$hr{'height'} =~ /^\d+$/
2313 2 0 12 defined $$hr{'max'} and $$hr{'max'} =~ /^\d+$/
2320 2 0 12 defined $$hr{'type'} and $$hr{'type'} =~ /^[123456]$/
0 0 2 defined $$hr{'bgp'} and defined $$hr{'format'}
0 0 2 defined $$hr{'bgp'} and defined $$hr{'format'} and $$hr{'bgp'} =~ /^([bgp])$/i
2346 3 0 11 defined $$hr{'comments'} and length $$hr{'comments'}
2363 2 0 14 $type != 1 and $type != 4
2421 0 21 0 exists $$i{'error'} and length $$i{'error'}
2488 0 5 0 exists $$inspect{'error'} and length $$inspect{'error'}
2624 0 8 2 exists $$i_r{'error'} and length $$i_r{'error'}
2642 0 1 9 checkval($$cur[0], $$i_r{'encode'}) && checkval($$cur[1], $$i_r{'encode'}) && checkval($$cur[2], $$i_r{'encode'})
2663 0 0 7 checkval($rgb[0], $$i_r{'encode'}) && checkval($rgb[1], $$i_r{'encode'}) && checkval($rgb[2], $$i_r{'encode'})
2741 0 65 0 defined $v and defined $enc

or 3 conditions

line l !l&&r !l&&!r condition
144 0 0 13 not defined $rc or $rc != 3
170 1 4 8 $$ir{'type'} == 1 or $$ir{'type'} == 4
2 2 4 $$ir{'type'} == 2 or $$ir{'type'} == 5
181 0 0 88 not defined $rc or $rc != 1
1205 0 0 35 not $max =~ /^\d+$/ or $max < 1
0 0 35 not $max =~ /^\d+$/ or $max < 1 or $max > 65535
2068 1 1 0 $a_r <=> $b_r || $a_g <=> $b_g || $a_b <=> $b_b
2356 0 0 16 $w < 1 or $h < 1
2364 0 0 14 not defined $max or $max < 1
0 0 14 not defined $max or $max < 1 or $max > 65535
2467 0 0 5 ref $f_r ne 'GLOB' or ref $i_r ne 'HASH'
0 0 5 ref $f_r ne 'GLOB' or ref $i_r ne 'HASH' or ref $p_r ne 'ARRAY'
2641 8 0 13 $$i_r{'type'} == 6 or $$i_r{'type'} == 3
11 2 0 $$i_r{'type'} == 5 or $$i_r{'type'} == 2