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 272 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 273 if ($error)
96 1 272 unless ref $class_colors eq "HASH"
101 0 6800 if ref $loaded_color
104 6800 0 if (defined $parsed_color)
110 1 272 if ($error)
121 0 6817 unless defined $color_label
122 14 6803 unless $color_label
125 4 6799 if ($color_label =~ /\Argb\((\d+),(\d+),(\d+)\)\z/) { }
6770 29 elsif ($color_label =~ /\A#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\z/i) { }
2 27 elsif ($color_label =~ /\A\e\[\d+(:?;\d+)*m\z/) { }
20 7 elsif ($color_label =~ /\A
127 1 3 if ($r < 256 and $g < 256 and $b < 256) { }
128 1 0 if ($self->{'color_level'} == 3) { }
142 374 6396 if ($self->{'color_level'} == 3) { }
198 52440 43515 if $s < $color