Branch Coverage

blib/lib/Timer/Simple.pm
Criterion Covered Total %
branch 36 40 90.0


line true false branch
32 0 7 @_ == 1 ? :
35 0 7 if ($$self{'format'})
43 6 1 if $$self{'start'}
53 3 29 unless (defined $$self{'started'})
58 18 11 defined $$self{'stopped'} ? :
62 28 1 $$self{'hires'} ? :
74 1 8 wantarray ? :
91 1 6 unless defined $$self{'stopped'}
95 5 2 if defined wantarray
105 1 7 if $self->can($format) or ref $format eq 'CODE' or overload::Method($format, '&{}')
114 4 3 if ($format eq 'short') { }
1 2 elsif ($format eq 'rps') { }
2 0 elsif ($format =~ /human|full/) { }
119 0 1 $elapsed == 0 ? :
125 1 1 if $format eq 'full'
136 17 4 $_[0]{'hires'} ? :
154 2 6 unless defined $HIRES
162 13 1 @_ ? :
164 9 5 $fractional ? :
170 2 2 @_ == 1 ? :