Condition Coverage

blib/lib/Plack/Middleware/CSRFBlock.pm
Criterion Covered Total %
condition 18 25 72.0


and 3 conditions

line !l l&&!r l&&r condition
110 114 17 1 $tag eq 'head' and $self->meta_tag
119 112 0 20 $tag eq 'form' and $$attr{'method'} =~ /post/i
121 12 4 4 $$attr{'action'} =~ m[^https?://([^/:]+)[/:]] and $1 ne $http_host

or 2 conditions

line l !l condition
28 0 4 $self->header_name || 'X-CSRF-Token'
48 0 4 $$env{'psgix.logger'} || sub { }
71 1 19 $request->header($self->header_name) || ''
77 19 0 $request->parameters->{$self->parameter_name} || ''
90 42 0 Plack::Util::header_get($$res[1], 'Content-Type') || ''

or 3 conditions

line l !l&&r !l&&!r condition
91 11 0 31 $ct =~ m[^text/html]i or $ct =~ m[^application/xhtml[+]xml]i
97 12 6 0 $$session{$self->session_key} ||= $self->_token_generator->()