Branch Coverage

lib/Test/MobileAgent.pm
Criterion Covered Total %
branch 32 40 80.0


line true false branch
20 0 1053 if defined wantarray
52 22 2098 if ($agent =~ /^[a-z]+$/) { }
4 2094 elsif ($agent =~ /^[a-z]+\./) { }
53 0 22 if ($agent =~ /^ip(?:hone|[oa]d)$/) { }
0 22 elsif ($agent eq 'android') { }
64 0 4 if ($vendor =~ /^(ip(?:hone|[oa]d)|android)$/)
68 0 4 if ($type =~ /^iP(?:hone|[oa]d)$/i)
76 918 1176 if ($agent =~ /^DoCoMo/i) { }
236 940 elsif ($agent =~ /^J\-PHONE/i) { }
60 880 elsif ($agent =~ /^KDDI\-/i) { }
242 638 elsif ($agent =~ /^UP\.Browser/i) { }
6 632 elsif ($agent =~ /DDIPOCKET/i) { }
16 616 elsif ($agent =~ /WILLCOM/i) { }
56 560 elsif ($agent =~ /^Vodafone/i) { }
10 550 elsif ($agent =~ /^MOT/i) { }
4 546 elsif ($agent =~ /^Nokia/i) { }
216 330 elsif ($agent =~ /^SoftBank/i) { }
0 330 elsif ($agent =~ /\(iP(?:hone|[ao]d);/) { }
0 330 elsif ($agent =~ /Android/) { }
122 0 2120 if ($@)