Branch Coverage

blib/lib/HTTP/MobileAgent/Vodafone.pm
Criterion Covered Total %
branch 37 48 77.0


line true false branch
32 5 80 if $self->user_agent =~ /^Vodafone/
33 5 75 if $self->user_agent =~ /^SoftBank/
34 2 73 if $self->user_agent =~ /^MOT-/
35 1 72 if $self->user_agent =~ /^Nokia/
39 22 50 if (@rest) { }
43 20 2 if ($$self{'serial_number'})
44 0 20 unless $$self{'serial_number'} =~ s/^SN//
55 1 49 if $$self{'name'} eq 'J-Phone'
56 49 1 if $$self{'model'}
59 15 57 if ($self->version =~ /^2\./) { }
32 25 elsif ($self->version =~ /^3\./) { }
21 4 elsif ($self->version =~ /^4\./) { }
3 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 6 4 if ($$self{'serial_number'})
97 0 6 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'))
169 4 2 $self->is_type_w || $self->is_type_3gc ? :
179 1 1 if $self->is_type_c