MobileAgent/AirHPhone.pm

filter: Statementstmt 90.9% 20 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 50.0% 2 / 4 totaltotal 77.7% 28 / 36 SCAR 7.0
CC
2
Cov
88%
parse
2.0
carrier
2.0
carrier_longname
2.0
CRAP 2.0
« MobileAgent/Display.pm ↑ Summary MobileAgent/NonMobile.pm »
1 package HTTP::MobileAgent::AirHPhone;
2  
3 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 10 $VERSION = 0.21;
6  
7 10 ▶use base qw(HTTP::MobileAgent);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 10 __PACKAGE__->make_accessors(
10 qw(vendor model model_version browser_version cache_size)
11 );
12  
13 5 ▶sub is_airh_phone { 1 }
Subroutine is_airh_phone: called CC=1 SCAR=0.0
Pod undocumented
14  
15 0 ▶sub carrier { 'H' }
Subroutine carrier: not called CC=1 SCAR=6.9
Pod documented
16  
17 0 ▶sub carrier_longname { 'AirH' }
Subroutine carrier_longname: not called CC=1 SCAR=6.9
Pod documented
18  
19 sub parse {
20 5 ▶ my $self = shift;
Subroutine parse: called CC=2 SCAR=7.0
Pod undocumented
21 5 my $ua = $self->user_agent;
22 5 ▶ $ua =~ m!^Mozilla/3\.0\((WILLCOM|DDIPOCKET);(.*)\)! or $self->no_match;
Branch: 1 branch
BranchTrueFalseTotal
$ua =~ m[^Mozilla/3\.0\((WILLCOM|DDIPOCKET);(.*)\)] or $self->no_match 0 5 5
23 5 $self->{name} = $1;
24 5 @{$self}{qw(vendor model model_version browser_version cache_size)} = split m!/!, $2;
25 5 $self->{cache_size} =~ s/^c//i;
26 }
27  
28 ▶sub _make_display {
Subroutine _make_display: not called CC=1 SCAR=0.0
29 # XXX
30 }
31  
32  
33 10 1;
34 __END__
« MobileAgent/Display.pm ↑ Summary MobileAgent/NonMobile.pm »