File Coverage

lib/Test/MobileAgent/Ezweb.pm
Criterion Covered Total %
statement 14 14 100.0
branch 2 2 100.0
condition n/a
subroutine 5 5 100.0
pod n/a
total 21 21 100.0


line stmt bran cond sub pod time code
1             package Test::MobileAgent::Ezweb;
2              
3 2     2   1507 use strict;
  2         5  
  2         247  
4 2     2   12 use warnings;
  2         2  
  2         68  
5 2     2   11 use base 'Test::MobileAgent::Base';
  2         3  
  2         867  
6              
7             sub _modify_headers {
8 304     304   790 my ($class, %headers) = @_;
9              
10 304 100       734 if (exists $headers{_USER_ID}) {
11 2         6 $headers{HTTP_X_UP_SUBNO} = delete $headers{_USER_ID};
12             }
13 304         1252 return %headers;
14             }
15              
16             # this list is borrowed from HTTP::MobileAgent's t/04_ezweb.t
17             # last updated: Fri Jan 14 14:56:46 2011
18 4     4   163 sub _list {q{
19             KDDI-CA21 UP.Browser/6.0.6 (GUI) MMP/1.1
20             KDDI-CA21 UP.Browser/6.0.7.1 (GUI) MMP/1.1
21             KDDI-HI21 UP.Browser/6.0.2.213 (GUI) MMP/1.1
22             KDDI-HI21 UP.Browser/6.0.2.273 (GUI) MMP/1.1
23             KDDI-HI21 UP.Browser/6.0.6 (GUI) MMP/1.1
24             KDDI-KC21 UP.Browser/6.0.2.273 (GUI) MMP/1.1
25             KDDI-KC21 UP.Browser/6.0.5 (GUI) MMP/1.1
26             KDDI-KC21 UP.Browser/6.0.6 (GUI) MMP/1.1
27             KDDI-KCU1 UP.Browser/6.2.0.5.1 (GUI) MMP/2.0
28             KDDI-MA21 UP.Browser/6.0.2.276 (GUI) MMP/1.1
29             KDDI-MA21 UP.Browser/6.0.5 (GUI) MMP/1.1
30             KDDI-MA21 UP.Browser/6.0.6 (GUI) MMP/1.1
31             KDDI-MA21 UP.Browser/6.0.7 (GUI) MMP/1.1
32             KDDI-SA21 UP.Browser/6.0.6 (GUI) MMP/1.1
33             KDDI-SA21 UP.Browser/6.0.7 (GUI) MMP/1.1
34             KDDI-SA21 UP.Browser/6.0.7.1 (GUI) MMP/1.1
35             KDDI-SA22 UP.Browser/6.0.7.2 (GUI) MMP/1.1
36             KDDI-SN21 UP.Browser/6.0.7 (GUI) MMP/1.1
37             KDDI-SN22 UP.Browser/6.0.7 (GUI) MMP/1.1
38             KDDI-SN31 UP.Browser/6.2.0.7.3.129 (GUI) MMP/2.0
39             KDDI-TS21 UP.Browser/6.0.2.273 (GUI) MMP/1.1
40             KDDI-TS21 UP.Browser/6.0.2.276 (GUI) MMP/1.1
41             KDDI-TS21 UP.Browser/6.0.5.287 (GUI) MMP/1.1
42             KDDI-TS21 UP.Browser/6.0.6 (GUI) MMP/1.1
43             KDDI-TS22 UP.Browser/6.0.6 (GUI) MMP/1.1
44             KDDI-TS22 UP.Browser/6.0.7.1 (GUI) MMP/1.1
45             KDDI-TS2A UP.Browser/6.2.0.9 (GUI) MMP/2.0
46             UP.Browser/3.01-HI01 UP.Link/3.4.5.2
47             UP.Browser/3.01-HI02 UP.Link/3.2.1.2
48             UP.Browser/3.03-HI11 UP.Link/3.2.2.7c
49             UP.Browser/3.03-HI11 UP.Link/3.4.4
50             UP.Browser/3.03-KCT3 UP.Link/3.4.4
51             UP.Browser/3.03-SYC1 UP.Link/3.4.4
52             UP.Browser/3.03-TS11 UP.Link/3.2.2.7c
53             UP.Browser/3.03-TST1 UP.Link/3.2.2.7c
54             UP.Browser/3.04-CA11 UP.Link/3.2.2.7c
55             UP.Browser/3.04-CA11 UP.Link/3.3.0.3
56             UP.Browser/3.04-CA11 UP.Link/3.3.0.5
57             UP.Browser/3.04-CA11 UP.Link/3.4.4
58             UP.Browser/3.04-CA12 UP.Link/3.4.4
59             UP.Browser/3.04-CA13 UP.Link/3.3.0.5
60             UP.Browser/3.04-CA13 UP.Link/3.4.4
61             UP.Browser/3.04-CA14 UP.Link/3.4.4
62             UP.Browser/3.04-DN11 UP.Link/3.3.0.1
63             UP.Browser/3.04-DN11 UP.Link/3.4.4
64             UP.Browser/3.04-HI11 UP.Link/3.2.2.7c
65             UP.Browser/3.04-HI11 UP.Link/3.4.4
66             UP.Browser/3.04-HI12 UP.Link/3.2.2.7c
67             UP.Browser/3.04-HI12 UP.Link/3.3.0.3
68             UP.Browser/3.04-HI12 UP.Link/3.4.4
69             UP.Browser/3.04-HI12 UP.Link/3.4.4 (Google WAP Proxy/1.0)
70             UP.Browser/3.04-HI13 UP.Link/3.4.4
71             UP.Browser/3.04-HI14 UP.Link/3.4.4
72             UP.Browser/3.04-HI14 UP.Link/3.4.5.2
73             UP.Browser/3.04-KC11 UP.Link/3.4.4
74             UP.Browser/3.04-KC12 UP.Link/3.4.4
75             UP.Browser/3.04-KC13 UP.Link/3.4.4
76             UP.Browser/3.04-KC14 UP.Link/3.4.4
77             UP.Browser/3.04-KC15 UP.Link/3.4.4
78             UP.Browser/3.04-KCT4 UP.Link/3.4.4
79             UP.Browser/3.04-KCT5 UP.Link/3.4.4
80             UP.Browser/3.04-KCT6 UP.Link/3.4.4
81             UP.Browser/3.04-KCT7 UP.Link/3.4.4
82             UP.Browser/3.04-KCT8 UP.Link/3.4.4
83             UP.Browser/3.04-KCT9 UP.Link/3.4.4
84             UP.Browser/3.04-MA11 UP.Link/3.2.2.7c
85             UP.Browser/3.04-MA11 UP.Link/3.3.0.3
86             UP.Browser/3.04-MA11 UP.Link/3.3.0.5
87             UP.Browser/3.04-MA11 UP.Link/3.4.4
88             UP.Browser/3.04-MA12 UP.Link/3.2.2.7c
89             UP.Browser/3.04-MA12 UP.Link/3.3.0.5
90             UP.Browser/3.04-MA12 UP.Link/3.4.4
91             UP.Browser/3.04-MA12 UP.Link/3.4.4 (Google WAP Proxy/1.0)
92             UP.Browser/3.04-MA13 UP.Link/3.3.0.5
93             UP.Browser/3.04-MA13 UP.Link/3.4.4
94             UP.Browser/3.04-MA13 UP.Link/3.4.4 (Google WAP Proxy/1.0)
95             UP.Browser/3.04-MA13 UP.Link/3.4.5.2
96             UP.Browser/3.04-MAC2 UP.Link/3.4.4
97             UP.Browser/3.04-MAI1 UP.Link/3.2.2.7c
98             UP.Browser/3.04-MAI2 UP.Link/3.2.2.7c
99             UP.Browser/3.04-MAI2 UP.Link/3.4.4
100             UP.Browser/3.04-MAT1 UP.Link/3.3.0.3
101             UP.Browser/3.04-MAT3 UP.Link/3.4.4
102             UP.Browser/3.04-MIT1 UP.Link/3.3.0.3
103             UP.Browser/3.04-MIT1 UP.Link/3.4.4
104             UP.Browser/3.04-MIT1 UP.Link/3.4.5.2
105             UP.Browser/3.04-SN11 UP.Link/3.2.2.7c
106             UP.Browser/3.04-SN11 UP.Link/3.3.0.3
107             UP.Browser/3.04-SN11 UP.Link/3.4.4
108             UP.Browser/3.04-SN11 UP.Link/3.4.4 (Google WAP Proxy/1.0)
109             UP.Browser/3.04-SN12 UP.Link/3.3.0.1
110             UP.Browser/3.04-SN12 UP.Link/3.3.0.5
111             UP.Browser/3.04-SN12 UP.Link/3.4.4
112             UP.Browser/3.04-SN12 UP.Link/3.4.5.2
113             UP.Browser/3.04-SN13 UP.Link/3.3.0.3
114             UP.Browser/3.04-SN13 UP.Link/3.3.0.5
115             UP.Browser/3.04-SN13 UP.Link/3.4.4
116             UP.Browser/3.04-SN14 UP.Link/3.4.4
117             UP.Browser/3.04-SN14 UP.Link/3.4.5.2
118             UP.Browser/3.04-SN15 UP.Link/3.4.4
119             UP.Browser/3.04-SN15 UP.Link/3.4.5.2
120             UP.Browser/3.04-SN16 UP.Link/3.4.4
121             UP.Browser/3.04-SN17 UP.Link/3.4.4
122             UP.Browser/3.04-SNI1 UP.Link/3.4.4
123             UP.Browser/3.04-ST11 UP.Link/3.3.0.1
124             UP.Browser/3.04-ST11 UP.Link/3.3.0.5
125             UP.Browser/3.04-ST11 UP.Link/3.4.4
126             UP.Browser/3.04-ST12 UP.Link/3.4.4
127             UP.Browser/3.04-ST13 UP.Link/3.4.4
128             UP.Browser/3.04-SY11 UP.Link/3.2.2.7c
129             UP.Browser/3.04-SY11 UP.Link/3.4.4
130             UP.Browser/3.04-SY12 UP.Link/3.3.0.1
131             UP.Browser/3.04-SY12 UP.Link/3.3.0.3
132             UP.Browser/3.04-SY12 UP.Link/3.3.0.5
133             UP.Browser/3.04-SY12 UP.Link/3.4.4
134             UP.Browser/3.04-SY12 UP.Link/3.4.5.2
135             UP.Browser/3.04-SY12 UP.Link/3.4.5.6
136             UP.Browser/3.04-SY13 UP.Link/3.4.4
137             UP.Browser/3.04-SY14 UP.Link/3.4.4
138             UP.Browser/3.04-SY15 UP.Link/3.4.4
139             UP.Browser/3.04-SYT3 UP.Link/3.4.4
140             UP.Browser/3.04-SYT3 UP.Link/3.4.5.2
141             UP.Browser/3.04-TS11 UP.Link/3.2.2.7c
142             UP.Browser/3.04-TS11 UP.Link/3.3.0.5
143             UP.Browser/3.04-TS11 UP.Link/3.4.4
144             UP.Browser/3.04-TS12 UP.Link/3.2.2.7c
145             UP.Browser/3.04-TS12 UP.Link/3.3.0.1
146             UP.Browser/3.04-TS12 UP.Link/3.3.0.3
147             UP.Browser/3.04-TS12 UP.Link/3.3.0.5
148             UP.Browser/3.04-TS12 UP.Link/3.4.4
149             UP.Browser/3.04-TS13 UP.Link/3.4.4
150             UP.Browser/3.04-TS14 UP.Link/3.4.4
151             UP.Browser/3.04-TS14 UP.Link/3.4.4 (Google WAP Proxy/1.0)
152             UP.Browser/3.04-TS14 UP.Link/3.4.5.2
153             UP.Browser/3.04-TSI1 UP.Link/3.2.2.7c
154             UP.Browser/3.04-TST3 UP.Link/3.4.4
155             UP.Browser/3.04-TST4 UP.Link/3.4.4
156             UP.Browser/3.04-TST4 UP.Link/3.4.5.2
157             UP.Browser/3.04-TST4 UP.Link/3.4.5.6
158             UP.Browser/3.04-TST5 UP.Link/3.4.4
159             UP.Browser/3.1-NT95 UP.Link/3.2
160             UP.Browser/3.1-SY11 UP.Link/3.2
161             UP.Browser/3.1-UPG1 UP.Link/3.2
162             UP.Browser/3.2.9.1-SA12 UP.Link/3.2
163             UP.Browser/3.2.9.1-UPG1 UP.Link/3.2
164             }}
165              
166             1;
167              
168             __END__