Branch Coverage

blib/lib/Color/TupleEncode/2Way.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
205 60 0 if defined $$options{'min'}
206 60 0 if defined $$options{'max'}
207 0 60 if $min < 0
208 0 60 if $max > 1
209 60 0 defined $$options{'power'} ? :
210 0 60 if $power < 0
211 60 0 defined $$options{'rmin'} ? :
213 0 60 if (not defined $power) { }
0 60 elsif ($power == 0) { }
216 0 0 if ($value <= $rmin) { }
225 2 58 if ($value < $rmin) { }
236 0 60 if $component < 0
237 0 60 if $component > 1
279 20 10 $b ? :
283 20 10 if (defined $ratio) { }
287 20 0 if ($ratio <= 1) { }
307 6 52 if ($x <= 0) { }
0 52 elsif ($x >= 1) { }