| blib/lib/XAO/DO/Web/Action.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 41 | 41.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 258 | 220 | 14 | 0 | $modecust and not $subref |
| 266 | 118 | 25 | 91 | $prefix eq "display" and not $subref |
| line | l | !l | condition |
|---|---|---|---|
| 176 | 0 | 26 | $data->{'status'} ||= "success" |
| 193 | 0 | 0 | $ecode ||= "UNKNOWN" |
| 197 | 0 | 0 | $default_data || {} |
| 203 | 0 | 0 | $data->{'status'} ||= "error" |
| 229 | 179 | 69 | $modecust || $modegen || '-no-mode' |
| 307 | 10 | 2 | $args->{'format'} || 'json' |
| 361 | 1 | 0 | $args->{'mode'} || ' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 204 | 0 | 0 | 0 | $data->{'error_code'} ||= $ecode |
| 205 | 0 | 0 | 0 | $data->{'error_message'} ||= $etext |
| 206 | 0 | 0 | 0 | $data->{'error_time'} ||= time |
| 304 | 12 | 0 | 0 | $args->{'data'} || $self->throw('- no data') |
| 309 | 0 | 5 | 2 | $format eq "js" or $format eq "json-embed" |
| 2 | 0 | 0 | $format eq "xml" or $format eq "xml-embed" | |
| 334 | 1 | 1 | 0 | $args->{'xmlmode'} || $args->{'mode'} |