blib/lib/MooX/TO_JSON.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 8 | 12 | 66.6 |
line | l | !l | condition |
---|---|---|---|
60 | 3 | 1 | $extra1 or '' |
66 | 3 | 1 | $extra1 || '' |
0 | 3 | $extra2 || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
64 | 0 | 4 | 0 | $opts{'predicate'} ||= 'has_' . $field |
66 | 1 | 0 | 3 | ($extra1 || '') eq 'omit_if_empty' or ($extra2 || '') eq 'omit_if_empty' |