blib/lib/Plack/Middleware/ServerName.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 7 | 14 | 50.0 |
line | true | false | branch |
---|---|---|---|
28 | 0 | 3 | if (defined $$self{'order'} and ref $$self{'order'} eq 'ARRAY') { } |
0 | 5 | elsif (defined $$self{'name'} and defined $$header_order{$$self{'name'}} and ref $$header_order{$$self{'name'}} eq 'ARRAY') { } | |
36 | 0 | 3 | if defined $$headers{'date'} and not defined $$headers{'last-modified'} |
37 | 2 | 1 | if (defined $$self{'name'}) { } |
1 | 0 | elsif (not defined $$self{'name'} and defined $$headers{'server'}) { } | |
45 | 0 | 0 | unless defined $$headers{lc $order} |
54 | 3 | 0 | if scalar @output_headers |