Branch Coverage

blib/lib/Text/Colorizer.pm
Criterion Covered Total %
branch 8 46 17.3


line true false branch
169 1 2 unless defined $class
194 0 2 if (@setup_data % 2)
230 0 0 if ($v =~ /^lookup:(.*)/)
232 0 0 if (exists $default_colors->{'ANSI'}{$1}) { }
245 0 0 if ($v =~ /^lookup:(.*)/)
247 0 0 if (exists $default_colors->{'HTML'}{$1}) { }
265 0 2 if ($self->{'VERBOSE'})
270 0 2 if (defined $self->{'COLORS'} and 'HASH' ne ref $self->{'COLORS'})
273 0 0 unless my $colors = do $self->{'COLORS'}
276 0 0 unless 'HASH' eq ref $colors
434 0 2 if (@options % 2)
439 2 0 if ('HASH' eq ref $valid_options) { }
0 0 elsif ('ARRAY' eq ref $valid_options) { }
456 0 0 unless (exists $valid_options->{$option_name})
462 0 2 if (defined $options{'FILE'} and not defined $options{'LINE'} or not defined $options{'FILE'} and defined $options{'LINE'})
569 0 0 if (ref $description eq 'ARRAY') { }
628 0 0 if (/ASCII/)
642 0 0 if (/ANSI/)
643 0 0 defined $color && $color ne '' ? :
649 0 0 if (/HTML/)
669 0 0 if @_ % 2
678 0 0 if (defined $color_tag and $self->{'FORMAT'} ne 'ASCII')
686 0 0 unless defined $color