Branch Coverage

blib/lib/Progress/Any/Output/TermProgressBarColor.pm
Criterion Covered Total %
branch 35 86 40.7


line true false branch
20 0 2 if $out->{'patch_handle1'}
23 0 2 if (defined &{'Log::Any::Adapter::Screen::hook_before_log';}) { }
0 2 elsif (defined &{'Log::ger::Output::Screen::hook_before_log';}) { }
45 0 2 if (defined &{'Log::Any::Adapter::Screen::hook_after_log';}) { }
0 2 elsif (defined &{'Log::ger::Output::Screen::hook_after_log';}) { }
53 0 0 unless $msg =~ /\R\z/
56 0 0 if $out->{'show_delay'}
59 0 0 if $out->{'_bar'}
69 0 0 unless $msg =~ /\R\z/
72 0 0 if $out->{'show_delay'}
75 0 0 if $out->{'_bar'}
99 8 0 if (defined $template_length)
101 2 6 if ($conv eq '%') { }
2 4 elsif ($conv eq 'b' or $conv eq 'B') { }
2 2 elsif ($conv eq 'p') { }
0 2 elsif ($conv eq 'e') { }
0 2 elsif ($conv eq 'r') { }
2 0 elsif ($conv eq 'R') { }
115 8 0 if (defined $width) { }
133 2 0 unless (defined $args{'width'})
135 0 2 if ($ENV{'COLUMNS'}) { }
2 0 elsif (eval { do { require Term::Size; 1 } }) { }
143 0 2 $^O =~ /Win/ ? :
161 0 2 if keys %args0
167 0 2 if ($args{'wide'})
182 8 8 $1 ? :
191 0 2 unless $conv eq 'b' or $conv eq 'B'
202 2 0 if ($tottgt) { }
204 0 2 if $bfilled > $bwidth
209 0 0 if $bfilled < 1
211 0 0 if ($self->{'_x'} > $bwidth - $bfilled)
219 2 0 if ($conv eq 'B' and defined $msg)
220 0 2 if ($msg =~ m[
225 0 2 if ($self->{'wide'}) { }
241 0 2 unless ($ENV{'PROGRESS_TERM_BAR'} // $ENV{'PROGRESS'}) // -t $self->{'fh'}
246 0 2 if (defined $self->{'show_delay'})
247 0 0 if $now - $self->{'show_delay'} < $self->{'_last_hide_time'}
256 0 2 if ($is_finished)
257 0 0 if ($self->{'_lastlen'})
282 0 2 $self->{'rownum'} > 0 ? :
297 2 0 unless $ll
303 0 0 $self->{'rownum'} > 0 ? :
306 0 0 unless $dont_reset_lastlen