Branch Coverage

blib/lib/Mojolicious/Plugin/CHI/Route.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
16 0 2 if (my $config_param = $app->config('CHI-Route'))
21 0 2 unless (exists $app->renderer->helpers->{'chi'})
28 1 1 unless ($app->chi($namespace))
52 7 5 unless $c->stash('chi.r.cache')
55 2 3 if ($c->res->is_error or $c->stash('status') and $c->stash('status') != 200)
93 0 14 if $c->req->method ne 'GET'
98 0 14 unless $chi
104 12 2 if ($arg->{'key'}) { }
105 10 2 ref $arg->{'key'} ? :
113 2 12 unless $key
119 7 5 if ($found) { }
128 2 5 if ($c->is_fresh('etag', $etag, 'last_modified', $last_modified)) { }
161 1 4 if (exists $arg->{'expires_in'})