blib/lib/HTTP/MobileAttribute/Plugin/CarrierLetter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 19 | 20 | 95.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package HTTP::MobileAttribute::Plugin::CarrierLetter; | ||||||
2 | 8 | 8 | 7874 | use strict; | |||
8 | 23 | ||||||
8 | 392 | ||||||
3 | 8 | 8 | 50 | use warnings; | |||
8 | 20 | ||||||
8 | 273 | ||||||
4 | 8 | 8 | 45 | use base qw/HTTP::MobileAttribute::Plugin/; | |||
8 | 19 | ||||||
8 | 757 | ||||||
5 | |||||||
6 | sub carrier :Method { | ||||||
7 | 236 | 236 | 0 | 2222 | my ($self, $c) = @_; | ||
8 | |||||||
9 | return +{ | ||||||
10 | 236 | 2275 | DoCoMo => 'I', | ||||
11 | ThirdForce => 'V', | ||||||
12 | EZweb => 'E', | ||||||
13 | AirHPhone => 'H', | ||||||
14 | NonMobile => 'N', | ||||||
15 | }->{ $c->carrier_longname }; | ||||||
16 | 8 | 8 | 1212 | } | |||
8 | 1644 | ||||||
8 | 71 | ||||||
17 | |||||||
18 | 1; | ||||||
19 | __END__ |