Branch Coverage

blib/lib/Color/Model/Munsell/Util.pm
Criterion Covered Total %
branch 60 122 49.1


line true false branch
59 10 0 if ($v and $_tableC{$v}) { }
63 0 0 wantarray ? :
69 1 14 unless ($_tableC_loaded)
81 0 5000 unless $_
82 5 4995 if /^#/
112 31 0 if (defined $_[0] and $_[0] =~ /^(\d{1,2}|\d{1,2}\.\d)(R|YR|Y|GY|G|BG|B|PB|P|RP)$/)
114 31 0 if ($n <= 10)
146 10 0 if ($_[0] =~ /^([0-9\.]+)([A-Z]+)$/)
149 0 10 if ($hueStep < 2.5) { }
0 10 elsif ($hueStep < 5) { }
10 0 elsif ($hueStep < 7.5) { }
150 0 0 $hueCol eq 'R' ? :
172 0 10 if $_debug
175 0 10 if $_debug
178 0 5100 if $$_[0] eq $h0
179 0 10 if $eqcheck
180 5090 10 unless $$_[0] eq 'N'
181 5090 10 unless $$_[0] eq 'N'
212 0 10 unless ($dD)
223 0 10 if ($_debug)
230 0 10 unless ($dC)
240 0 10 if ($_debug)
249 0 10 if ($_debug)
262 0 10 if $_debug
269 0 5 unless (defined $m and ref $m eq 'Color::Model::Munsell')
272 0 5 if $_debug
275 0 5 if ($m->isneutral)
277 0 0 if $_debug
285 0 5 $v < 1 ? :
286 0 5 if $_debug
287 0 5 if ($lv == 0) { }
291 0 5 unless (defined $LZ)
296 0 5 $v < 1 ? :
297 0 5 if $_debug
299 0 5 unless (defined $UZ)
303 0 5 if $_debug
306 0 5 if $_debug
309 0 5 if $_debug
373 0 4 unless (defined $m and ref $m eq 'Color::Model::Munsell')
386 0 3 unless (defined $m and ref $m eq 'Color::Model::Munsell')
391 0 3 unless ($atype =~ /^(None|XYZ|Bradford|vonKries)$/)
394 0 3 if $_debug
397 3 0 if ($atype ne 'None') { }
402 0 3 if $_debug
457 0 2 unless (defined $m and ref $m eq 'Color::Model::Munsell')
462 0 2 unless ($rgbtype =~ /^(AdobeRGB|AppleRGB|PAL|sRGB|NTSC)$/)
465 0 2 if $_debug
468 0 2 if ($rgbtype eq 'NTSC') { }
475 0 2 if $_debug
482 0 1 unless (defined $m and ref $m eq 'Color::Model::Munsell')
490 1 0 if ($rgbtype eq 'sRGB') { }
491 3 0 $_ > 0.0031308 ? :
495 0 3 $_ > 1 ? :
0 3 $_ < 0 ? :
500 0 0 $_ > 1 ? :
0 0 $_ < 0 ? :
503 0 1 if $_debug
534 16 0 if (defined $m)
535 0 16 if (ref $m eq 'Color::Model::Munsell') { }
16 0 elsif (looks_like_number $m) { }
541 0 16 unless (defined $v)