Branch Coverage

blib/lib/Mojolicious/Plugin/CSRFDefender.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
36 1 4 if ($$conf{'error_template'})
44 9 20 unless ($self->_validate_csrf($c))
46 2 7 if ($self->error_template) { }
81 15 14 if ($c->req->method eq 'POST')
82 9 6 unless $request_token
83 0 6 unless $session_token
84 0 6 unless $request_token eq $session_token
88 2 18 if ($c->req->method eq 'POST' and $self->onetime)
101 22 7 if $token