blib/lib/Mojolicious/Plugin/Host.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 25 | 26 | 96.1 |
line | true | false | branch |
---|---|---|---|
13 | 6 | 6 | if (not defined $www) { } |
3 | 3 | elsif ($www eq 'always') { } | |
3 | 0 | elsif ($www eq 'never') { } | |
18 | 2 | 2 | if (index($host, 'www.') != 0) |
27 | 2 | 2 | if (index($host, 'www.') == 0) |
44 | 10 | 17 | if (exists $config->{'helper'}) { } |
48 | 2 | 8 | if $ref |
49 | 2 | 6 | if not defined $helper or $helper eq '' |
55 | 15 | 8 | if (exists $config->{'www'}) |
59 | 2 | 13 | if $ref |
60 | 2 | 11 | if not defined $www or $www eq '' |
62 | 3 | 8 | unless grep {$www eq $_;} 'always', 'never' |
65 | 4 | 12 | if %$config |