Branch Coverage

blib/lib/HTTP/MobileAgent/Vodafone.pm
Criterion Covered Total %
branch 33 44 75.0


line true false branch
32 3 74 if $self->user_agent =~ /^Vodafone/
33 3 71 if $self->user_agent =~ /^SoftBank/
34 2 69 if $self->user_agent =~ /^MOT-/
35 1 68 if $self->user_agent =~ /^Nokia/
39 21 47 if (@rest) { }
43 20 1 if ($self->{'serial_number'})
44 0 20 unless $self->{'serial_number'} =~ s/^SN//
55 1 46 if $self->{'name'} eq 'J-Phone'
56 46 1 if $self->{'model'}
59 12 56 if ($self->version =~ /^2\./) { }
32 24 elsif ($self->version =~ /^3\./) { }
21 3 elsif ($self->version =~ /^4\./) { }
2 1 elsif ($self->version =~ /^5\./) { }
62 0 32 if ($self->get_header('x-jphone-java')) { }
70 21 0 if ($jscl_ver =~ /^1\.1\./) { }
0 0 elsif ($jscl_ver eq '1.2.1') { }
0 0 elsif ($jscl_ver eq '1.2.2') { }
96 4 2 if ($self->{'serial_number'})
97 0 4 unless $self->{'serial_number'} =~ s/^SN//
124 2 0 if $self->{'name'} eq 'MOT-V980'
125 0 2 if $self->{'name'} eq 'MOT-C980'
149 1 0 if (my $c_str = $self->get_header('x-jphone-color'))