Condition Coverage

lib/Mojolicious/Plugin/CSRFProtect.pm
Criterion Covered Total %
condition 9 18 50.0


and 3 conditions

line !l l&&!r l&&r condition
17 1 0 1 $$conf{'on_error'} and ref $$conf{'on_error'} eq 'CODE'
31 0 0 0 defined $_[-1] and ref $_[-1] eq 'CODE'
85 0 0 10 $valid_token and $form_token
0 4 6 $valid_token and $form_token and $form_token eq $valid_token

or 3 conditions

line l !l&&r !l&&!r condition
67 11 0 7 $c->req->method =~ /^(?:GET|HEAD|OPTIONS)$/ or $self->_is_valid_csrftoken($c)
84 2 8 0 $c->req->headers->header('X-CSRF-Token') || $c->param('csrftoken')