Branch Coverage

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


line true false branch
34 0 7 @_ == 1 ? :
37 0 7 if ($$self{'format'})
45 6 1 if $$self{'start'}
55 3 29 unless (defined $$self{'started'})
60 18 11 defined $$self{'stopped'} ? :
64 28 1 $$self{'hires'} ? :
76 1 8 wantarray ? :
93 1 6 unless defined $$self{'stopped'}
97 5 2 if defined wantarray
107 1 7 if $self->can($format) or ref $format eq 'CODE' or overload::Method($format, '&{}')
116 4 3 if ($format eq 'short') { }
1 2 elsif ($format eq 'rps') { }
2 0 elsif ($format =~ /human|full/) { }
121 0 1 $elapsed == 0 ? :
127 1 1 if $format eq 'full'
138 17 4 $_[0]{'hires'} ? :
156 2 6 unless defined $HIRES
164 13 1 @_ ? :
166 9 5 $fractional ? :
172 2 2 @_ == 1 ? :