Branch Coverage

blib/lib/Log/ger/Output/Screen.pm
Criterion Covered Total %
branch 24 40 60.0


line true false branch
46 0 1 $color_depth >= 256 ? :
47 1 0 if (defined(my $c = $colors->{$level}))
50 0 0 if (defined(my $clevel = $level_map{$level}))
58 0 0 if (not defined $dist or $dist > $d)
73 7 0 unless $msg =~ /\R\z/
80 3 1 unless defined $stderr
81 3 1 $stderr ? :
83 1 3 if (defined $plugin_conf{'use_color'}) { }
0 3 elsif (exists $ENV{'NO_COLOR'}) { }
0 3 elsif (defined $ENV{'COLOR'}) { }
90 2 1 $stderr ? :
94 1 3 if (defined $plugin_conf{'color_depth'}) { }
0 3 elsif (defined $ENV{'COLOR_DEPTH'}) { }
3 0 elsif (not $use_color) { }
0 0 elsif (defined $ENV{'COLORTERM'} and $ENV{'COLORTERM'} eq 'truecolor') { }
0 0 elsif (defined $ENV{'TERM'} and $ENV{'TERM'} =~ /256color/) { }
118 1 6 if $per_msg_conf
6 1 unless defined $level
119 0 7 if ($formatter)
123 1 6 if ($use_color) { }