Branch Coverage

lib/Mojolicious/Plugin/CSRFProtect.pm
Criterion Covered Total %
branch 9 12 75.0


line true false branch
17 1 1 if ($$conf{'on_error'} and ref $$conf{'on_error'} eq 'CODE') { }
25 0 2 unless $original_form_for
31 0 0 if (defined $_[-1] and ref $_[-1] eq 'CODE')
67 3 4 unless ($c->req->method =~ /^(?:GET|HEAD|OPTIONS)$/ or $self->_is_valid_csrftoken($c))
85 4 6 unless ($valid_token and $form_token and $form_token eq $valid_token)
95 6 2 if $c->session('csrftoken')