Branch Coverage

blib/lib/Dancer2/Plugin/HTTP/ConditionalRequest.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
173 0 0 if ref $_[-1] eq 'CODE'
188 0 0 unless $args->{'required'}
200 0 0 if ($self->http_method_is_nonsafe) { }
204 0 0 if $args->{'etag'} and not $self->app->request->header('If-Match')
207 0 0 if $args->{'last_modified'} and not $self->app->request->header('If-Unmodified-Since')
236 0 0 if (defined $self->app->request->header('If-Match'))
240 0 0 unless exists $args->{'etag'}
244 0 0 if ($self->app->request->header('If-Match') eq $args->{'etag'}) { }
263 0 0 if (defined $self->app->request->header('If-Unmodified-Since'))
267 0 0 unless exists $args->{'last_modified'}
272 0 0 unless defined $rqst_date
277 0 0 $args->{'last_modified'}->isa('DateTime') ? :
278 0 0 unless defined $last_date
283 0 0 if ($rqst_date > $last_date) { }
301 0 0 if (defined $self->app->request->header('If-None-Match'))
305 0 0 unless exists $args->{'etag'}
309 0 0 if ($self->app->request->header('If-None-Match') ne $args->{'etag'}) { }
312 0 0 if ($self->app->request->method eq 'GET' or $self->app->request->method eq 'HEAD') { }
335 0 0 if ($self->app->request->method eq 'GET' || $self->app->request->method eq 'HEAD' and not defined $self->app->request->header('If-None-Match') and defined $self->app->request->header('If-Modified-Since'))
345 0 0 unless exists $args->{'last_modified'}
350 0 0 unless defined $rqst_date
355 0 0 $args->{'last_modified'}->isa('DateTime') ? :
356 0 0 unless defined $last_date
361 0 0 if ($rqst_date < $last_date) { }
386 0 0 if ($self->app->request->method eq 'GET' or $self->app->request->method eq 'HEAD')
389 0 0 if (exists $args->{'etag'})
392 0 0 if (exists $args->{'last_modified'})
395 0 0 $args->{'last_modified'}->isa('DateTime') ? :
396 0 0 unless defined $last_date
405 0 0 if $coderef