blib/lib/Time/Duration/Parse/AsHash.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 14 | 100.0 |
line | true | false | branch |
---|---|---|---|
41 | 5 | 43 | if ($timespec =~ /^\s*(-?\d+(?:[.,]\d+)?)\s*$/) |
52 | 28 | 47 | unless length $unit == 1 |
54 | 73 | 2 | if (my $canon_unit = $Units{$unit}) { } |
56 | 4 | 69 | if (my $convert = $Converts{$canon_unit}) |
66 | 1 | 45 | if ($timespec =~ /\S/) |
71 | 1 | 69 | if $res{$_} == 0 |
74 | 1 | 44 | if ($_[0]) |