web/cgi-bin/yatt.lib/YATT/Util/CGICompat.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 16 | 75.0 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 4 | 6 | 66.6 |
pod | n/a | ||
total | 16 | 24 | 66.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package YATT::Util::CGICompat; | ||||||
2 | 1 | 1 | 8367 | use strict; | |||
1 | 2 | ||||||
1 | 40 | ||||||
3 | 1 | 1 | 4 | use warnings FATAL => qw/all/; | |||
1 | 1 | ||||||
1 | 42 | ||||||
4 | |||||||
5 | 1 | 1 | 4 | use YATT::Util::Symbol qw/globref stash/; | |||
1 | 1 | ||||||
1 | 51 | ||||||
6 | |||||||
7 | 1 | 1 | 1185 | use CGI; | |||
1 | 9770 | ||||||
1 | 8 | ||||||
8 | |||||||
9 | sub import { | ||||||
10 | 0 | 0 | 0 | unless (stash('CGI')->{'multi_param'}) { | |||
11 | 0 | *{globref('CGI', 'multi_param')} = sub { | |||||
12 | 0 | 0 | shift->param(@_); | ||||
13 | 0 | }; | |||||
14 | } | ||||||
15 | } | ||||||
16 | |||||||
17 | 1; |