blib/lib/Amon2/Plugin/Web/JSON.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 12 | 13 | 92.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
29 | 2 | 15 | 2 | not $c->request->header("X-Requested-With") and $user_agent =~ /android/i |
17 | 0 | 2 | not $c->request->header("X-Requested-With") and $user_agent =~ /android/i and defined $c->req->header("Cookie") | |
15 | 1 | 1 | not $c->request->header("X-Requested-With") and $user_agent =~ /android/i and defined $c->req->header("Cookie") and ($c->req->method || 'GET') eq "GET" |
line | l | !l | condition |
---|---|---|---|
26 | 7 | 12 | $c->req->user_agent || '' |
29 | 1 | 1 | $c->req->method || 'GET' |