Branch Coverage

blib/lib/Number/RGB.pm
Criterion Covered Total %
branch 22 24 91.6


line true false branch
45 1 1590 unless keys %params
48 802 788 if (defined $params{'rgb'}) { }
775 13 elsif (defined $params{'rgb_number'}) { }
13 0 elsif (defined $params{'hex'}) { }
55 9 4 if length $hex == 3
76 30 36 ref $other && overload::Overloaded($other) ? :
77 3 63 $reversed ? :
79 6 60 if $ans < 0
4 62 if $ans > 255
87 5 783 if $value =~ /,/
91 0 1583 if $param eq 'hex' and $is_single_rgb
93 785 798 if defined $self