Branch Coverage

blib/lib/Color/Model/Munsell.pm
Criterion Covered Total %
branch 49 64 76.5


line true false branch
84 209 7 if (@_ == 1) { }
91 216 0 if (defined $hue) { }
93 5 211 if ($hue eq 'N') { }
211 0 elsif ($hue =~ /^(\d+|\d+\.\d+)(R|YR|Y|GY|G|BG|B|PB|P|RP)$/) { }
99 0 211 if ($hue_step > 10)
103 1 210 if ($hue_step == 0)
105 0 1 $hue_col eq 'R' ? :
120 216 0 if (defined $value) { }
121 216 0 if ($value =~ /^(\d+|\d+\.\d+)$/) { }
123 0 216 if ($value > 10) { }
4 212 elsif ($value == 0 or $value == 10) { }
142 209 7 if ($chromatic)
143 209 0 if (defined $chroma) { }
144 209 0 if ($chroma =~ /^(\d+|\d+\.\d+)$/) { }
146 1 208 if ($chroma == 0)
162 208 8 $chromatic ? :
208 8 $chromatic ? :
208 8 $chromatic ? :
284 1 1 defined $_[0]{'chroma'} ? :
285 1 1 defined $_[0]{'chroma'} ? :
297 228 11 if (defined $$self{'chroma'}) { }
307 1 1 $$self{'value'} <= 1 ? :
313 1 1 $$self{'value'} >= 9.5 ? :
335 0 209 unless (@_ == 1)
339 207 2 if (ref $self eq 'Color::Model::Munsell') { }
340 0 207 unless defined $$self{'chroma'}
343 0 2 unless defined $self
345 5 204 if ($$self{'hue'} eq '10RP') { }
362 0 2 unless (@_ == 1)
366 0 2 unless (defined $num and $num =~ /^(\d+|\d+\.\d+)$/)
369 0 2 if ($num > 100)
373 1 1 if ($num == 0 or $num == 100) { }