Branch Coverage

blib/lib/XAO/DO/Web/Action.pm
Criterion Covered Total %
branch 26 36 72.2


line true false branch
162 27 96 if ($data_sub)
175 26 1 if (ref $data eq "HASH")
188 0 0 if ($etext =~ /\{\{(?:([A-Z0-9_-]+):\s*)?(.*?)\s*\}\}/)
202 0 0 if (ref $data eq "HASH")
214 27 96 if ($data) { }
232 112 136 unless ($subcache)
237 14 234 if (exists $subcache->{$subcachekey})
247 0 234 unless $subname =~ /^[a-z0-9_]+$/
258 0 234 if ($modecust and not $subref)
266 91 143 if ($prefix eq "display" and not $subref)
267 11 80 if ($data_sub) { }
289 7 3 if $self->siteconfig->get("/xao/action/json_canonical")
290 0 10 if $self->siteconfig->get("/xao/action/json_pretty")
305 0 12 unless ref $data
309 5 7 if ($format eq 'json') { }
5 2 elsif ($format eq 'js' or $format eq 'json-embed') { }
2 0 elsif ($format eq 'xml' or $format eq 'xml-embed') { }
340 2 0 if ($format eq "xml")