Condition Coverage

blib/lib/Mojolicious/Plugin/Toto.pm
Criterion Covered Total %
condition 21 36 58.3


and 3 conditions

line !l l&&!r l&&r condition
262 0 10 4 $namespaces and @$namespaces
296 0 17 3 $namespaces and @$namespaces

or 2 conditions

line l !l condition
271 2 8 $template || 'plural'
319 2 6 $template || 'single'
370 0 4 $$conf{'prefix'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
236 7 27 0 $namespace || ()
311 0 0 8 grep {-e "$_/$object/$key/$tab.html.ep";} @{$app->renderer->paths;} or $c->app->renderer->get_data_template({'template', "$object/$key/$tab", 'format', 'html', 'handler', 'ep'})
371 0 4 0 $$conf{'head_route'} || $app->routes
392 6 8 0 $first ||= $subnav_item
396 9 0 0 $first ||= "$object/default"
401 11 9 0 $first_tab ||= $tab
448 19 6 0 shift() || $c->current_object
462 30 0 0 $c->stash('key') || [split(m[\/], $c->current_route, 0)]->[2]