Branch Coverage

blib/lib/Color/Scheme.pm
Criterion Covered Total %
branch 43 66 65.1


line true false branch
110 0 6 if @args
171 15 3 $$self{'add_complement'} ? :
183 35 0 if (exists $dispatch{$$self{'scheme'}}) { }
244 0 10 unless defined $h
262 0 4 unless defined $hex
263 0 4 unless $hex =~ / ^ ( [0-9A-F]{2} ) {3} $ /imsx
277 100 0 $d > 0 ? :
282 24 24 $g == $max ? :
52 48 $r == $max ? :
302 8 88 if ($h >= $h1 and $h <= $h0)
306 5 91 if ($h <= $h2 and $h >= $h0)
312 3 1 if ($h2 == 0 or $h2 > 360)
317 3 1 $h2 != $h1 ? :
343 0 3 unless defined $b
361 0 3 unless defined $b
379 0 4 unless defined $d
380 0 4 if $d < 0
381 0 4 if $d > 1
397 0 11 unless defined $name
398 0 11 unless exists $SCHEMES{$name}
413 0 7 unless defined $v
414 0 7 unless exists $PRESETS{$v}
435 0 24 unless defined $hue
491 10 430 $x < 0 ? :
492 0 440 if $s > 1
493 0 440 if $s < 0
500 92 348 $x < 0 ? :
501 0 440 if $v > 1
502 0 440 if $v < 0
523 0 440 $variation < 0 ? :
526 0 440 $variation < 0 ? :
531 440 0 $max > 0 ? :
536 208 232 if $web_safe