Branch Coverage

blib/lib/ProgressMonitor/AbstractStatefulMonitor.pm
Criterion Covered Total %
branch 18 40 45.0


line true false branch
32 0 12 if $state == 0
46 0 12 if ($$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_beginMessage})
67 0 12 if $state == 0 or $state == 1
75 12 0 if $$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_cfg}->get_completeAtEnd
80 0 12 if ($$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_endMessage})
114 0 12 if ($$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_prepareMessage})
134 0 411 shift() ? :
145 200 0 if ($when == 0) { }
0 0 elsif ($when == 1) { }
0 0 elsif ($when == 2) { }
0 0 elsif ($when == 3) { }
0 0 elsif ($when == 4) { }
186 108 80 if ($$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_state} == 2)
190 108 0 if (defined $$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_totalTicks}) { }
195 108 0 if $ticks and $ticks >= 0
199 0 108 if int $$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_ticks} > int $$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_totalTicks}
213 0 188 if ($$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_tickMessage})
322 224 188 $$self{$ProgressMonitor::AbstractStatefulMonitor::ATTR_state} == $_ ? :
323 0 224 unless $match
373 0 12 if $self->get_resolution < 0