Branch Coverage

blib/lib/Nephia/Plugin/CSRFDefender.pm
Criterion Covered Total %
branch 12 14 85.7


line true false branch
56 0 4 if (my $token = $session->get('csrf_token')) { }
71 3 3 if ($$req{'env'}{'REQUEST_METHOD'} eq 'POST')
74 2 1 if (not $r_token && $session_token or $r_token ne $session_token)
94 5 6 unless ($$obj{'no_validate_hook'})
95 1 4 unless (_validate_csrf($app))
117 0 10 $$obj{'post_only'} ? :
119 7 3 if (defined $body)