Branch Coverage

blib/lib/Term/ANSIColor/Print.pm
Criterion Covered Total %
branch 17 34 50.0


line true false branch
105 1 0 defined $args{'output'} ? :
0 1 defined $args{'eol'} ? :
0 1 defined $args{'pad'} ? :
1 0 defined $args{'alias'} ? :
129 0 4 unless ($token =~ /\A \w+ \z/msx)
135 0 4 unless ($alias =~ /\A \w+ \z/msx)
144 1 3 $method =~ s/ _+ \z//msx ? :
158 5 7 if (ref $code eq 'HASH')
163 0 7 unless ($code)
165 0 0 if (defined $ANSI_CODE_FOR{$token})
180 0 3 ref $_ eq 'ARRAY' ? :
185 0 3 if ($string =~ /$SUB_COLOR_REGEX/) { }
3 0 elsif (not $string =~ /$COLOR_REGEX/) { }
187 0 0 $1 ? :
194 0 0 $3 ? :
219 3 1 if (@strings) { }
230 0 4 if (ref $$self{'output'} eq 'GLOB')