Branch Coverage

lib/Mojolicious/Plugin/DeCSRF.pm
Criterion Covered Total %
branch 24 24 100.0


line true false branch
11 1 1 if $$conf{'token_length'}
12 1 1 if $$conf{'token_name'}
13 1 1 if $$conf{'on_mismatch'}
14 1 1 if $$conf{'urls'}
20 8 5 if $base->c($c)->check
21 1 4 if ($base->on_mismatch and ref $base->on_mismatch eq 'CODE') { }
49 8 5 if ($self->_match($c->req->url))
51 5 3 unless $c->req->param($self->token_name) and $c->req->param($self->token_name) eq $token
63 8 2 if ($_token_checked)
67 3 7 if ($self->_match($url))
75 17 6 if (@{$self->urls;} and $url)
77 11 13 if $self->c->url_for($url)->path =~ /^$_$/