Branch Coverage

blib/lib/Text/Colorizer.pm
Criterion Covered Total %
branch 8 38 21.0


line true false branch
220 1 2 unless defined $class
245 0 2 if (@setup_data % 2)
370 0 2 if ($$self{'VERBOSE'})
375 0 2 if ('HASH' ne ref $$self{'COLORS'})
377 0 0 unless my $colors = do $$self{'COLORS'}
380 0 0 unless 'HASH' eq ref $colors
403 0 2 if (@options % 2)
408 2 0 if ('HASH' eq ref $valid_options) { }
0 0 elsif ('ARRAY' eq ref $valid_options) { }
425 0 0 unless (exists $$valid_options{$option_name})
431 0 2 if (defined $options{'FILE'} and not defined $options{'LINE'} or not defined $options{'FILE'} and defined $options{'LINE'})
539 0 0 if (ref $description eq 'ARRAY') { }
598 0 0 if (/ASCII/msx)
612 0 0 if (/ANSI/msx)
613 0 0 defined $color && $color ne $EMPTY_STRING ? :
619 0 0 if (/HTML/msx)
639 0 0 if @colors_and_text % 2
648 0 0 if (defined $color_tag and $$self{'FORMAT'} ne 'ASCII')
656 0 0 unless defined $color