Condition Coverage

blib/lib/Color/RGB/Util.pm
Criterion Covered Total %
condition 30 61 49.1


and 3 conditions

line !l l&&!r l&&r condition
202 35 0 0 $avoid_colors and ref $avoid_colors eq "ARRAY"
205 35 0 0 $avoid_colors and ref $avoid_colors eq "HASH"
486 0 2 7 $h >= 0 and $h <= 360
0 0 9 $s >= 0 and $s <= 1
0 0 9 $l >= 0 and $l <= 1
503 0 1 4 $h >= 0 and $h <= 360
0 0 5 $s >= 0 and $s <= 1
0 0 5 $v >= 0 and $v <= 1
522 0 1 7 $h >= 0 and $h <= 360
0 0 8 $s >= 0 and $s <= 1
0 0 8 $v >= 0 and $v <= 1

or 2 conditions

line l !l condition
96 4 5 $pct //= "0.5"
161 0 101 $rgb1 //= "000000"
164 0 101 $rgb2 //= "ffffff"
178 1 30 shift() // 1
180 0 31 $opts->{'max_attempts'} // 1000
241 2 1 $algo //= "average"
280 45 0 $algo //= "euclidean"
365 4 1 $pct //= "0.5"

or 3 conditions

line l !l&&r !l&&!r condition
292 3 41 1 $algo eq "approx1" or $algo eq "approx2"
0 0 1 $algo eq "hsv_euclidean" or $algo eq "hsv_hue1"
565 0 0 0 $opts->{'colors'} // $basic_colors
571 0 0 0 not defined $min_diff or $min_diff > $diff