Branch Coverage

blib/lib/Woothee/MobilePhone.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
15 315 18 if index($ua, 'DoCoMo') < 0 and index($ua, ';FOMA;') < 0
18 12 6 if ($ua =~ m[DoCoMo/[.0-9]+[ /]([^- /;()"']+)]o) { }
6 0 elsif ($ua =~ /\(([^;)]+);FOMA;/o) { }
35 309 6 if index($ua, 'KDDI-') < 0
39 6 0 if ($ua =~ m[KDDI-([^- /;()"']+)]o) { }
53 288 9 if index($ua, 'SoftBank') < 0 and index($ua, 'Vodafone') < 0 and index($ua, 'J-PHONE') < 0
56 21 0 if ($ua =~ m[(?:SoftBank|Vodafone|J-PHONE)/[.0-9]+/([^ /;()]+)]o) { }
70 279 9 if index($ua, 'WILLCOM') < 0 and index($ua, 'DDIPOCKET') < 0
74 9 0 if ($ua =~ m[(?:WILLCOM|DDIPOCKET);[^/]+/([^ /;()]+)]o) { }
88 9 270 if (index($ua, 'jig browser') > -1)
90 6 3 if ($ua =~ /jig browser[^;]+; ([^);]+)/o)
95 9 258 if (index($ua, 'emobile/') > -1 or index($ua, 'OpenBrowser') > -1 or index($ua, 'Browser/Obigo-Browser') > -1)
99 0 258 if (index($ua, 'SymbianOS') > -1)
103 0 258 if (index($ua, 'Hatena-Mobile-Gateway/') > -1)
108 3 255 if (index($ua, 'livedoor-Mobile-Gateway/') > -1)