blib/lib/HTML/FormHandlerX/Field/JSON.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 9 | 14 | 64.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
43 | 0 | 3 | 5 | $self->form and $self->form->can($set_data) |
line | l | !l | condition |
---|---|---|---|
101 | 1 | 9 | $self->get_json_opt('pretty') // 1 |
102 | 0 | 10 | $self->get_json_opt('relaxed') // 1 |
103 | 0 | 10 | $self->get_json_opt('canonical') // 1 |
104 | 10 | 0 | &JSON()->new->utf8->allow_nonref->pretty($pretty)->relaxed($relaxed)->canonical($canonical)->encode($value) || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
41 | 4 | 4 | 0 | $set_data ||= 'data_' . HTML::FormHandler::Field::convert_full_name($self->full_name) |