Branch Coverage

blib/lib/Mojolicious/Plugin/DBIC/Controller/DBIC.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
117 2 2 unless ($row)
253 4 2 if ($c->req->method eq 'GET')
254 2 2 if ($id)
282 0 2 if ($c->accepts('html') and $c->validation->csrf_protect->has_error('csrf_token'))
284 0 0 $id ? :
302 0 2 if (my $props = $c->stash('properties'))
311 1 1 $id ? :
312 1 1 if ($update) { }
320 0 2 if (my $error = $@)
323 0 0 $id ? :
333 0 0 $update ? :
339 2 0 if (my $route = $c->stash('forward_to'))
419 1 1 if ($c->req->method eq 'GET')
436 0 1 if ($c->accepts('html') and $c->validation->csrf_protect->has_error('csrf_token'))
458 1 0 if (my $route = $c->stash('forward_to'))