Branch Coverage

blib/lib/Data/Printer/Theme.pm
Criterion Covered Total %
branch 39 44 88.6


line true false branch
15 1 1 exists $self->{'is_custom'} ? :
27 3 9 unless exists $self->{'sgr_colors'}{$color_type}
51 2 263 unless $theme->_load_theme($params{'ddp'})
59 0 13 unless $colors_to_override and ref $colors_to_override eq "HASH" and keys %$colors_to_override
66 1 16 if ref $override
68 6 10 if (defined $parsed)
75 1 12 if ($error)
87 1 264 if ($error)
96 1 263 unless ref $class_colors eq "HASH"
101 0 6049 if ref $loaded_color
104 6049 0 if (defined $parsed_color)
110 1 263 if ($error)
121 0 6066 unless defined $color_label
122 14 6052 unless $color_label
125 4 6048 if ($color_label =~ /\Argb\((\d+),(\d+),(\d+)\)\z/) { }
6021 27 elsif ($color_label =~ /\A#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\z/i) { }
2 25 elsif ($color_label =~ /\A\e\[\d+(:?;\d+)*m\z/) { }
18 7 elsif ($color_label =~ /\A (?: \s* (?:on_)? (?:bright_)? (?:black|red|green|yellow|blue|magenta|cyan|white) )+ \s*\z/x) { }
127 1 3 if ($r < 256 and $g < 256 and $b < 256) { }
128 1 0 if ($self->{'color_level'} == 3) { }
142 344 5677 if ($self->{'color_level'} == 3) { }
198 45655 39515 if $s < $color