Condition Coverage

blib/lib/Plack/Middleware/CrossOrigin.pm
Criterion Covered Total %
condition 28 36 77.7


and 3 conditions

line !l l&&!r l&&r condition
121 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'}
1 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
147 10 1 9 $env->{'REQUEST_METHOD'} eq 'OPTIONS' && $request_method
149 15 1 4 $continue_on_failure && !$preflight

or 3 conditions

line l !l&&r !l&&!r condition
89 5 0 0 $self->origins || ()
92 2 4 0 $self->methods || @all_methods
95 1 5 0 $self->headers || @common_headers
98 2 5 0 $self->expose_headers || ()
161 5 9 6 $allowed_origins_h->{'*'} or $origin =~ /$self->{'origins_re'}/