Branch Coverage

blib/lib/Term/ANSIColor.pm
Criterion Covered Total %
branch 128 128 100.0


line true false branch
271 3 26 unless ($attr and defined $ATTRIBUTES{lc $attr})
277 1 25 if ($ENV{'ANSI_COLORS_DISABLED'})
297 4 28 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
6 22 elsif ($AUTOLOCAL and @_) { }
6 16 elsif ($AUTORESET and @_) { }
3 24 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
3 21 elsif ($AUTOLOCAL and @_) { }
4 17 elsif ($AUTORESET and @_) { }
1 7 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 6 elsif ($AUTOLOCAL and @_) { }
1 5 elsif ($AUTORESET and @_) { }
2 11 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
2 9 elsif ($AUTOLOCAL and @_) { }
2 7 elsif ($AUTORESET and @_) { }
2 11 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
2 9 elsif ($AUTOLOCAL and @_) { }
2 7 elsif ($AUTORESET and @_) { }
1 8 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 7 elsif ($AUTOLOCAL and @_) { }
1 6 elsif ($AUTORESET and @_) { }
1 6 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 5 elsif ($AUTOLOCAL and @_) { }
1 4 elsif ($AUTORESET and @_) { }
1 7 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 6 elsif ($AUTOLOCAL and @_) { }
1 5 elsif ($AUTORESET and @_) { }
1 6 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 5 elsif ($AUTOLOCAL and @_) { }
1 4 elsif ($AUTORESET and @_) { }
1 9 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 8 elsif ($AUTOLOCAL and @_) { }
1 7 elsif ($AUTORESET and @_) { }
1 9 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 8 elsif ($AUTOLOCAL and @_) { }
1 7 elsif ($AUTORESET and @_) { }
1 31 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 30 elsif ($AUTOLOCAL and @_) { }
2 28 elsif ($AUTORESET and @_) { }
1 5 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 4 elsif ($AUTOLOCAL and @_) { }
1 3 elsif ($AUTORESET and @_) { }
1 5 if ($ENV{'ANSI_COLORS_DISABLED'}) { }
1 4 elsif ($AUTOLOCAL and @_) { }
1 3 elsif ($AUTORESET and @_) { }
314 1 24 unless ($eval_result)
346 8 24 if (@COLORSTACK)
364 8 24 if (@COLORSTACK) { }
399 1 43 if ($ENV{'ANSI_COLORS_DISABLED'})
407 42 14 if (defined $ATTRIBUTES{$code}) { }
3 11 elsif (defined $ALIASES{$code}) { }
420 31 1 $attribute ne '' ? :
443 1 21 unless (defined $attrs)
457 9 9 unless (defined $name)
486 2 14 if (ref $first and ref $first eq 'ARRAY') { }
495 1 15 if ($ENV{'ANSI_COLORS_DISABLED'})
504 7 7 if (defined $EACHLINE) { }
505 9 9 $_ ne $EACHLINE ? :
525 3 7 unless (defined $color)
526 1 2 if (not exists $ALIASES{$alias}) { }
537 2 5 if (not $alias =~ / \A [a-zA-Z0-9._-]+ \z /msx) { }
1 4 elsif ($ATTRIBUTES{$alias}) { }
2 2 elsif (not exists $ATTRIBUTES{$color}) { }
564 1 4 wantarray ? :
577 9 13 unless (defined $ATTRIBUTES{$code} or defined $ALIASES{$code})