Branch Coverage

blib/lib/ProgressMonitor/Stringify/AbstractMonitor.pm
Criterion Covered Total %
branch 36 68 52.9


line true false branch
47 0 11 if $wsum > $maxWidth
52 0 11 if ($remainingWidth < 0) { }
74 0 11 if $_->isDynamic
108 0 0 if $_->isDynamic
126 200 0 if $when == 0
155 0 600 if (defined $$self{$ProgressMonitor::Stringify::AbstractMonitor::ATTR_msgto}) { }
157 0 0 if $$self{$ProgressMonitor::Stringify::AbstractMonitor::ATTR_msgto} <= $now
162 0 600 if $to >= 0
185 0 411 unless defined $considerMessage
197 0 411 if ($ms eq 'overlay_newline') { }
0 411 elsif ($ms eq 'overlay_honor_newline') { }
217 411 0 unless ($cfg->get_allowOverflow)
222 0 411 if length $rendition > $w
225 222 189 if ($considerMessage)
227 40 182 if ($msg and $ms ne 'none')
231 20 20 if ($ms eq 'newline') { }
239 20 0 if $w > length $msgLine
257 20 0 if $start_ovrfld == $_
259 20 0 if $end_ovrfld == $_
260 0 20 if $start_ovrpos and $end_ovrpos
265 20 0 $mf ? :
266 20 0 if $len > length $msg
268 20 0 if ($ms eq 'overlay' or $ms eq 'overlay_honor_newline' and not $forceNewline) { }
277 0 20 if ($forceNewline)
369 0 11 unless $maxWidth >= 0
372 0 11 if (ref $fields ne 'ARRAY')
381 0 11 unless blessed $_ and $_->isa('ProgressMonitor::Stringify::Fields::AbstractField')
382 0 11 if $seenFields{$_}
387 0 11 unless $ms =~ /^(?:none|overlay|newline|overlay_newline|overlay_honor_newline)$/
390 2 9 if ($ms =~ /^overlay/)
393 2 0 unless defined $self->get_messageOverlayEndField
397 0 2 if $start < 1 or $start > $maxFieldNum
398 0 2 if $end < 1 or $end > $maxFieldNum or $end < $start
403 0 11 if length $mf > 1