Branch Coverage

blib/lib/Term/ANSIScreen.pm
Criterion Covered Total %
branch 32 62 51.6


line true false branch
108 0 1 if ($^O eq 'MSWin32' and eval { do { require Win32::Console } })
113 1 0 unless ($main::FG_WHITE)
162 4 9 if (my $seq = $Term::ANSIScreen::sequences{$sub}) { }
9 0 elsif (defined(my $attr = $Term::ANSIScreen::attributes{lc $sub}) and $sub =~ /^[A-Z_]+$/) { }
163 0 4 unless $enable_colors
165 2 0 defined $_[0] ? :
166 4 0 defined wantarray ? :
171 8 1 if ($enable_colors)
173 2 1 if $Term::ANSIScreen::AUTORESET and @_ and not $out =~ /\e\[0m$/s
175 9 0 defined wantarray ? :
190 0 1 if defined $ENV{'ANSI_COLORS_DISABLED'}
202 2 38 if defined $ENV{'ANSI_COLORS_DISABLED'}
209 0 58 if $code eq 'on'
211 58 0 if (defined $Term::ANSIScreen::attributes{$code}) { }
219 38 0 if ($attribute)
221 38 0 defined wantarray ? :
229 1 4 ref $_[0] ? :
232 1 4 if defined $ENV{'ANSI_COLORS_DISABLED'}
234 3 1 if (defined $Term::ANSIScreen::EACHLINE) { }
235 5 9 $_ && $_ ne $Term::ANSIScreen::EACHLINE ? :
242 4 0 defined wantarray ? :
253 0 4 unless ($escape =~ /^((?:\d+;)*\d*)$/)
265 0 3 unless (defined $name)
276 0 1 if %Term::ANSIScreen::attributes_r
287 0 0 if ($key eq $mapto) { }
288 0 0 if exists $mapped{$key}
294 0 0 unless $key =~ /^\d+;\d+$/
295 0 0 unless $mapto =~ /^\d+;\d+$/
297 0 0 defined wantarray ? :
304 0 0 @_ ? :
308 0 0 defined wantarray ? :