blib/lib/Data/Vitals/Height.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 14 | 57.1 |
line | true | false | branch |
---|---|---|---|
130 | 2 | 0 | defined $_[1] ? : |
134 | 1 | 1 | if ($value =~ /^(\d{2,3}(?:\.5)?)\s*(?:c|cm|cms)?$/) |
136 | 0 | 1 | unless ($cm > 30 and $cm < 300) |
144 | 1 | 0 | if ($value =~ /^(\d)(?:\'|f|ft|foot|feet)(\d{1,2}(?:\.5)?)(?:\"|i|in|inc|inch|inchs|inches)?$/) |
147 | 0 | 1 | unless ($feet >= 1 and $feet <= 8) |
151 | 0 | 1 | unless ($inch >= 0 and $inch < 12) |
157 | 0 | 1 | unless my $cm = Data::Vitals::Util::inch2cm($feet * 12 + $inch) |