line |
true |
false |
branch |
143
|
2 |
2 |
if ($input =~ /^\d+$/) { } |
|
2 |
0 |
elsif ($input =~ /^(?:(bold|bright) \s )?(black|red|green|yellow|blue|magenta|cyan|white)$/xi) { } |
144
|
2 |
0 |
if ($input >= 0 and $input <= 15) { } |
152
|
0 |
2 |
if ($col eq 'black') { } |
|
2 |
0 |
elsif ($col eq 'red') { } |
|
0 |
0 |
elsif ($col eq 'green') { } |
|
0 |
0 |
elsif ($col eq 'yellow') { } |
|
0 |
0 |
elsif ($col eq 'blue') { } |
|
0 |
0 |
elsif ($col eq 'magenta') { } |
|
0 |
0 |
elsif ($col eq 'cyan') { } |
|
0 |
0 |
elsif ($col eq 'white') { } |
169
|
1 |
1 |
if $bold |
183
|
1 |
729 |
if $diff == 0 |
184
|
50 |
679 |
if (not defined $smallest_diff or $smallest_diff > $diff) |
212
|
0 |
1 |
unless exists $ansi256{$input} |
278
|
1 |
3 |
$res >= 8 ? : |
303
|
1 |
1 |
$res >= 8 ? : |
415
|
7 |
1 |
unless (defined $_color_depth) |
417
|
0 |
7 |
if (exists $ENV{'NO_COLOR'}) |
421
|
1 |
6 |
if (defined $ENV{'COLOR'} and not $ENV{'COLOR'}) |
425
|
4 |
2 |
if (defined $ENV{'COLOR_DEPTH'}) |
429
|
0 |
2 |
if ($_use_termdetsw) |
431
|
0 |
0 |
unless ($@) |
437
|
1 |
1 |
if ($ENV{'KONSOLE_DBUS_SERVICE'}) |
477
|
2 |
5 |
if ($cd >= 16777216) { } |
|
1 |
4 |
elsif ($cd >= 256) { } |
|
2 |
2 |
elsif ($cd >= 16) { } |
519
|
0 |
0 |
if ($cd >= 16777216) { } |
|
0 |
0 |
elsif ($cd >= 256) { } |
532
|
1 |
1 |
if ($conditional) |
534
|
1 |
0 |
if $cd < 16 |