Branch Coverage

blib/lib/Convert/Color/RGB8.pm
Criterion Covered Total %
branch 16 24 66.6


line true false branch
83 2 30 if (@_ == 1) { }
30 0 elsif (@_ == 3) { }
85 1 1 if (/^([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})$/u) { }
1 0 elsif (/^(\d+),(\d+),(\d+)$/u) { }
104 0 96 if $_ < 0
105 0 96 if $_ > 255
198 1 3 unless defined $alpha
200 0 4 if $alpha < 0
201 0 4 if $alpha > 1
230 1 3 unless defined $alpha
232 0 4 if $alpha < 0
233 0 4 if $alpha > 255