Condition Coverage

blib/lib/Plack/Middleware/CrossOrigin.pm
Criterion Covered Total %
condition 25 33 75.7


and 3 conditions

line !l l&&!r l&&r condition
94 0 1 6 $$env{'REQUEST_METHOD'} eq 'GET' and $$env{'HTTP_USER_AGENT'}
1 0 6 $$env{'REQUEST_METHOD'} eq 'GET' and $$env{'HTTP_USER_AGENT'} and $$env{'HTTP_USER_AGENT'} =~ m[\bAppleWebKit/(\d+\.\d+)]
1 2 4 $$env{'REQUEST_METHOD'} eq 'GET' and $$env{'HTTP_USER_AGENT'} and $$env{'HTTP_USER_AGENT'} =~ m[\bAppleWebKit/(\d+\.\d+)] and $1 < 534.19
2 1 3 $$env{'REQUEST_METHOD'} eq 'GET' and $$env{'HTTP_USER_AGENT'} and $$env{'HTTP_USER_AGENT'} =~ m[\bAppleWebKit/(\d+\.\d+)] and $1 < 534.19 and $$env{'HTTP_REFERER'}
3 0 3 $$env{'REQUEST_METHOD'} eq 'GET' and $$env{'HTTP_USER_AGENT'} and $$env{'HTTP_USER_AGENT'} =~ m[\bAppleWebKit/(\d+\.\d+)] and $1 < 534.19 and $$env{'HTTP_REFERER'} and $$env{'HTTP_REFERER'} =~ m[\A ( \w+://[^/]+ )]msx
120 6 1 9 $$env{'REQUEST_METHOD'} eq 'OPTIONS' && $request_method
122 11 1 4 $continue_on_failure && !$preflight

or 3 conditions

line l !l&&r !l&&!r condition
72 4 0 0 $self->origins || ()
75 2 2 0 $self->methods || @webdav_methods
78 1 3 0 $self->headers || @common_headers
81 2 3 0 $self->expose_headers || ()