Branch Coverage

blib/lib/Time/Duration/Parse/AsHash.pm
Criterion Covered Total %
branch 12 12 100.0


line true false branch
41 5 42 if ($timespec =~ /^\s*(-?\d+(?:[.,]\d+)?)\s*$/)
52 26 47 unless length $unit == 1
54 71 2 if (my $canon_unit = $Units{$unit}) { }
56 4 67 if (my $convert = $Converts{$canon_unit})
66 1 44 if ($timespec =~ /\S/)
71 1 67 if $res{$_} == 0