Branch Coverage

blib/lib/Time/HiRes/Value.pm
Criterion Covered Total %
branch 36 38 94.7


line true false branch
45 7 36 if ($t =~ s/^-//)
52 22 21 if ($t =~ /^(\d+)\.(\d+)$/) { }
19 2 elsif ($t =~ /^(\d+)$/) { }
68 7 34 if ($negative)
69 5 2 if ($usec != 0) { }
111 32 7 if (@_ == 2) { }
7 0 elsif (@_ == 1) { }
112 1 31 unless $_[0] =~ /^[+-]?\d+(?:\.\d+)?$/
113 0 31 unless $_[1] =~ /^[+-]?\d+(?:\.\d+)?$/
184 1 5 if ($$self[0] < -1 and $$self[1] != 0) { }
1 4 elsif ($$self[0] == -1 and $$self[1] != 0) { }
222 7 1 unless (ref $other and $other->isa('Time::HiRes::Value'))
250 4 1 unless (ref $other and $other->isa('Time::HiRes::Value'))
254 1 4 if $swap
276 1 9 if (ref $other and $other->isa('Time::HiRes::Value'))
298 1 8 if $swap
300 1 7 if (ref $other and $other->isa('Time::HiRes::Value'))
304 1 6 if $other == 0
325 25 8 unless (ref $other and $other->isa('Time::HiRes::Value'))