Condition Coverage

blib/lib/Colouring/In.pm
Criterion Covered Total %
condition 41 61 67.2


and 3 conditions

line !l l&&!r l&&r condition
23 62 1 10085 defined $_[0] && $_[0] =~ /^[0-9]+/
82 1 0 30219 defined $_ and $_ =~ /([0-9.]+)/
200 8 1 0 $TOOL{'numIs'}->($_[\'1']) and $_[1] != \'1'
265 8 1 2 $meth && $meth eq 'relative'
280 10 1 1 $meth && $meth eq 'relative'
302 12 1 1 $meth && $meth eq 'relative'
311 12 1 1 $meth && $meth eq 'relative'
356 0 0 0 $meth && $meth eq 'relative'
368 0 0 0 $meth && $meth eq 'relative'

or 2 conditions

line l !l condition
18 20447 10281 $_[0] || \'0'
131 30597 $_[1] || \'0'
19 20441 10287 $_[0] || \'0'
30686 42 $_[1] || \'0'
64 0 1 $TOOL{'MESSAGES'}{'INVALID_COLOUR'} || 'Cannot convert the colour format'
68 0 1 $TOOL{'MESSAGES'}{'INVALID_RGB'} || 'Cannot convert rgb colour format'
76 0 1 $TOOL{'MESSAGES'}{'INVALID_HEX'} || 'Cannot convert hex colour format'
78 0 0 $TOOL{'MESSAGES'}{'INVALID_HEX'} || 'Cannot convert hex colour format'
82 0 1 $TOOL{'MESSAGES'}{'INVALID_HSL'} || 'Cannot convert hsl colour format'
30219 1 defined $_ and $_ =~ /([0-9.]+)/ or die $TOOL{'MESSAGES'}{'INVALID_HSL'} || 'Cannot convert hsl colour format'
265 0 2 $hsl->{'l'} || \'1'
319 0 0 $weight || \'50'
393 3 0 $TOOL{'MESSAGES'}{'VALIDATE_ERROR'} || 'The string passed to Colouring::In::validate is not a valid color.'
399 1 0 $TOOL{'MESSAGES'}{'VALIDATE'} || 'The string passed to Colouring::In::validate is a valid color'

or 3 conditions

line l !l&&r !l&&!r condition
76 8 4 1 $_ =~ /0/ || $h
78 32 109 0 $_ =~ /00/ || $h