Branch Coverage

blib/lib/HTTP/MobileAttribute/Agent/ThirdForce.pm
Criterion Covered Total %
branch 34 44 77.2


line true false branch
13 7 111 if $user_agent =~ /^Vodafone/
14 16 95 if $user_agent =~ /^SoftBank/
15 3 92 if $user_agent =~ /^MOT-/
16 1 91 if $user_agent =~ /^Nokia/
20 26 65 if (@rest) { }
24 24 2 if ($$self{'serial_number'})
25 0 24 unless $$self{'serial_number'} =~ s/^SN//
36 1 64 if $$self{'name'} eq 'J-Phone'
37 64 1 if $$self{'model'}
40 29 62 if ($self->version =~ /^2\./) { }
32 30 elsif ($self->version =~ /^3\./) { }
25 5 elsif ($self->version =~ /^4\./) { }
4 1 elsif ($self->version =~ /^5\./) { }
43 0 32 if ($self->request->get('x-jphone-java')) { }
51 25 0 if ($jscl_ver =~ /^1\.1\./) { }
0 0 elsif ($jscl_ver eq '1.2.1') { }
0 0 elsif ($jscl_ver eq '1.2.2') { }
77 9 14 if ($$self{'serial_number'})
78 0 9 unless $$self{'serial_number'} =~ s/^SN//
82 22 1 if ($java_info)
108 3 0 if $$self{'name'} eq 'MOT-V980'
109 0 3 if $$self{'name'} eq 'MOT-C980'