blib/lib/MooX/Tag/TO_JSON.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 10 | 14 | 71.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
63 | 101 | 16 | 14 | exists $$opt{"if_exists"} and not $self->${\$$opt{"predicate"};} |
67 | 111 | 1 | 5 | exists $$opt{"if_defined"} and not defined $self->${\$attr;} |
line | l | !l | condition |
---|---|---|---|
34 | 15 | 0 | $self->_tags->tag_attr_hash->{"to_json"} // {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
71 | 7 | 0 | 0 | $$opt{"alt_name"} // $attr |
91 | 0 | 3 | 12 | $self->can("_modify_jsonr") // $self->can("modify_jsonr") |