lib/Mojolicious/Plugin/Mobi.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 3 | 5 | 60.0 |
line | l | !l | condition |
---|---|---|---|
29 | 0 | 0 | $c->req->headers->user_agent || $ENV{'HTTP_USER_AGENT'} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
31 | 3 | 3 | 2 | $user_agent =~ /$pattern/u || substr($user_agent, 0, 4) =~ /$pattern_ext/u |