blib/lib/Plack/Middleware/DetectMobileBrowsers.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 8 | 100.0 |
line | true | false | branch |
---|---|---|---|
21 | 3 | 6 | defined $self->env_key ? : |
23 | 3 | 6 | if ($self->tablets_as_mobile) { } |
24 | 2 | 1 | if ($$env{'HTTP_USER_AGENT'} =~ /$re_a_inclTablets/ or substr($$env{'HTTP_USER_AGENT'}, 0, 4) =~ /$re_b/) { } |
32 | 2 | 4 | if ($$env{'HTTP_USER_AGENT'} =~ /$re_a_noTablets/ or substr($$env{'HTTP_USER_AGENT'}, 0, 4) =~ /$re_b/) { } |