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
37 1 1 19 defined $mass and &looks_like_number($mass)
2 1 18 defined $mass and &looks_like_number($mass) and $mass > 0
41 1 1 16 defined $name and length $name
44 1 1 14 defined $grname and length $grname
96 1 1 2 defined $param{'id'} and length $param{'id'}
110 1 1 2 defined $param{'group'} and length $param{'group'}
151 1 1 10 defined $mass and &looks_like_number($mass)
2 1 9 defined $mass and &looks_like_number($mass) and $mass > 0
158 1 1 2 defined $param{'id'} and length $param{'id'}
172 1 1 2 defined $param{'group'} and length $param{'group'}

or 2 conditions

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