Branch Coverage

blib/lib/ProgressBar/Stack.pm
Criterion Covered Total %
branch 40 58 68.9


line true false branch
43 11 25 if (defined $param{$_})
44 0 11 if (ref $param{$_} ne '')
54 4 5 if (defined $param{'message'})
57 9 0 if (defined $param{'renderer'})
58 0 9 if (ref $param{'renderer'} ne 'CODE')
75 0 0 $etatime >= 0 ? :
84 161 26 unless defined $progress
85 179 8 unless defined $action
90 4 165 if $action eq $lastaction and $progress < $$self{'count'} and $progress < $$self{'nextminupdate'} || $progress < $$self{'nextforceupdate'} && &Time::HiRes::time() < $$self{'nexttimeupdate'}
96 0 183 $progress > $$self{'count'} ? :
110 2 26 $_e <= $_s ? :
116 0 28 if (scalar @{$$self{'progressstack'};} == 1)
127 0 9 $e <= $s ? :
139 0 15 unless $nelem
147 72 15 if ($i++)
149 63 0 if $$stacktop[1] >= $$self{'nextminupdate'} and $$stacktop[1] >= $$self{'nextforceupdate'} || &Time::HiRes::time() >= $$self{'nexttimeupdate'}
159 15 0 if $i
167 0 1 unless $nelem
176 3 1 if ($i++)
178 3 0 if $$stacktop[1] >= $$self{'nextminupdate'} and $$stacktop[1] >= $$self{'nextforceupdate'} || &Time::HiRes::time() >= $$self{'nexttimeupdate'}
188 1 0 if $i
199 1 0 if $caller eq 'ProgressBar::Stack'
207 0 1 unless $nelem
213 99998 1 if ($i++)
215 49 94999 if $$stacktop[1] >= $$self{'nextminupdate'} and $$stacktop[1] >= $$self{'nextforceupdate'} || &Time::HiRes::time() >= $$self{'nexttimeupdate'}
224 1 0 if $i
243 18 0 if $$stacktop[1] >= $$self{'nextminupdate'} and $$stacktop[1] >= $$self{'nextforceupdate'} || &Time::HiRes::time() >= $$self{'nexttimeupdate'}
266 10 1 $$self{'lastprogress'} ? :
271 10 1 $$self{'lastprogress'} ? :