Condition Coverage

blib/lib/Image/Xpm.pm
Criterion Covered Total %
condition 36 69 52.1


and 3 conditions

line !l l&&!r l&&r condition
168 4 0 4 defined $file and not $$self{-'pixels'}
171 4 4 0 defined $file and not defined $self->get('-width')
204 20 6 0 $field eq '-hotx' and $val < $UNSET || $val >= $self->get('-width')
206 20 6 0 $field eq '-hoty' and $val < $UNSET || $val >= $self->get('-height')
374 0 190 0 $state != $STATE_IN_COMMENT and m[^\s*/\*]o
409 5 1 0 defined $hotx and not defined $hoty
5 1 0 defined $hotx and $hotx >= $width
5 1 0 defined $hoty and $hoty >= $height

or 3 conditions

line l !l&&r !l&&!r condition
82 0 0 58 $ch[$i] == $CH_BS or $ch[$i] == $CH_BSLASH
0 3 55 $ch[$i] == $CH_BS or $ch[$i] == $CH_BSLASH or $ch[$i] == $CH_QUOTE
3 3 52 $ch[$i] == $CH_BS or $ch[$i] == $CH_BSLASH or $ch[$i] == $CH_QUOTE or $ch[$i] == $CH_DQUOTE
133 1 7 0 ref $self || $self
169 2 2 0 ref $file or -r $file
204 0 0 6 $val < $UNSET || $val >= $self->get('-width')
206 0 0 6 $val < $UNSET || $val >= $self->get('-height')
224 6 34 1 $$self{-'cindex'}{lc $colour} || $self->_add_colour($colour)
234 0 0 0 $$self{-'palette'}{$cc}{'c'} || $$self{-'palette'}{$cc}{'m'} || $$self{-'palette'}{$cc}{'s'} || $$self{-'palette'}{$cc}{'g'} || $$self{-'palette'}{$cc}{'g4'}
246 1 0 0 $$self{-'cindex'}{lc $colour} || $self->_add_colour($colour)
254 0 0 0 $$self{-'palette'}{$cc}{'c'} || $$self{-'palette'}{$cc}{'m'} || $$self{-'palette'}{$cc}{'s'} || $$self{-'palette'}{$cc}{'g'} || $$self{-'palette'}{$cc}{'g4'}
307 1 5 0 shift() || $self->get('-file')
409 0 0 6 defined $hotx and not defined $hoty or defined $hotx and $hotx >= $width
0 0 6 defined $hotx and not defined $hoty or defined $hotx and $hotx >= $width or defined $hoty and $hoty >= $height
484 2 0 0 shift() || $self->get('-file')