Branch Coverage

lib/Template/Colour.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
44 28 5 if (@_ == 1) { }
3 2 elsif (@_ == 2) { }
0 2 elsif (@_ == 3) { }
2 0 elsif (@_) { }
46 2 26 if is_object ref $class || $class, $_[0]
53 1 25 ref $_[0] eq 'HASH' ? :
73 28 3 if ($space = $$config{'rgb'} || $$config{'RGB'}) { }
1 2 elsif ($space = $$config{'hsv'} || $$config{'HSV'}) { }
1 1 elsif (exists $$config{'hue'}) { }
120 0 14 @_ && $_[0] ? :
126 0 7 @_ && $_[0] ? :
134 0 7 if $$self[3] and not @_
138 0 7 @_ && ref $_[0] eq 'HASH' ? :
170 0 0 @_ && ref $_[0] eq 'HASH' ? :
188 47 19 if $v < $min
204 9 57 if $v > $max