Condition Coverage

blib/lib/WebColors.pm
Criterion Covered Total %
condition 28 44 63.6


and 3 conditions

line !l l&&!r l&&r condition
811 16 2 2 not $rgb and $name =~ /^[0-9a-f]{6}$/i
915 999 108 9 _almost($r, $r1) and _almost($g, $g1)
1107 5 4 _almost($r, $r1) and _almost($g, $g1) and _almost($b, $b1)

or 2 conditions

line l !l condition
730 10 0 $hex ||= '000000'
766 9 0 $name ||= 'black'
801 20 0 $name ||= 'black'
865 2 0 $name ||= 'black'
905 4 0 $r //= 0
906 4 0 $g //= 0
907 4 0 $b //= 0
943 2 0 $r //= 0
944 2 0 $g //= 0
945 2 0 $b //= 0
965 1 0 $hex ||= '000000'
989 2 0 $r //= 0
990 2 0 $g //= 0
991 2 0 $b //= 0
1054 0 1 $by ||= 1
1074 0 1 $by ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
883 128 2 1112 $a == $b || $a + 1 == $b || $a - 1 == $b