Condition Coverage

blib/lib/Food/Ratio.pm
Criterion Covered Total %
condition 32 32 100.0


and 3 conditions

line !l l&&!r l&&r condition
34 1 1 19 defined $mass and &looks_like_number($mass)
2 1 18 defined $mass and &looks_like_number($mass) and $mass > 0
38 1 1 16 defined $name and length $name
40 1 1 14 defined $grname and length $grname
90 1 1 2 defined $param{'id'} and length $param{'id'}
104 1 1 2 defined $param{'group'} and length $param{'group'}
143 1 1 10 defined $mass and &looks_like_number($mass)
2 1 9 defined $mass and &looks_like_number($mass) and $mass > 0
150 1 1 2 defined $param{'id'} and length $param{'id'}
164 1 1 2 defined $param{'group'} and length $param{'group'}

or 2 conditions

line l !l condition
48 8 6 $groups->{$grname} //= []