Branch Coverage

blib/lib/Time/Simple.pm
Criterion Covered Total %
branch 40 72 55.5


line true false branch
131 2 73 if (scalar @hms and $hms[0] =~ /^\d{10}$/g || scalar @hms == 10 || scalar @hms == 9) { }
62 11 elsif (@hms == 1) { }
135 0 2 if ($time =~ /\D/g)
136 0 0 if ($FATALS) { }
139 0 0 if $^W
146 8 54 if (ref $hms[0] eq 'ARRAY')
153 1 61 unless (defined $hms[0])
154 1 0 if ($FATALS) { }
157 0 0 if $^W
163 72 2 unless (defined $time)
164 67 5 if (@hms == 3) { }
5 0 elsif (@hms == 0) { }
0 0 elsif ($FATALS) { }
165 1 66 unless (&validate(@hms))
166 1 0 if ($FATALS) { }
169 0 0 if $^W
176 0 66 $localtime[8] ? :
0 66 $localtime[8] ? :
186 0 66 unless $time
198 0 0 if $^W
238 0 31 unless defined $test
240 0 31 if $@
247 0 201 if $i != abs int $i or $i < 0
249 0 66 if $h > 23 or $m > 59 or $s > 59
272 0 0 if (UNIVERSAL::isa($n, ref $self))
282 0 3 if UNIVERSAL::isa($n, ref $self)
289 0 0 if UNIVERSAL::isa($n, ref $self)
297 0 3 if UNIVERSAL::isa($n, ref $self)
304 2 4 if (UNIVERSAL::isa($n, ref $self))
317 5 3 if (UNIVERSAL::isa($n, ref $self)) { }
322 1 4 if $diff < 0
323 0 5 $reverse ? :
333 33 3 unless UNIVERSAL::isa($x, ref $self)
335 1 35 $reverse ? :
343 0 3 if (UNIVERSAL::isa($n, ref $self))
357 0 2 if (UNIVERSAL::isa($n, ref $self))