Branch Coverage

blib/lib/Woothee/Browser.pm
Criterion Covered Total %
branch 44 54 81.4


line true false branch
15 501 21 if index($ua, 'compatible; MSIE') < 0 and index($ua, 'Trident/') < 0 and index $ua, 'IEMobile'
18 45 21 if ($ua =~ /MSIE ([.0-9]+);/o) { }
21 0 elsif ($ua =~ m[Trident/([.0-9]+);]o and $ua =~ / rv:([.0-9]+)/o) { }
0 0 elsif ($ua =~ m[IEMobile/([.0-9]+);]o) { }
35 486 6 if index($ua, 'YaBrowser/') < 0
39 6 0 if ($ua =~ m[YaBrowser/([.0-9]+)]o)
50 492 9 if index($ua, 'Vivaldi/') < 0
54 9 0 if ($ua =~ m[Vivaldi/([.0-9]+)]o)
65 399 87 if index($ua, 'Safari/') < 0
69 12 75 if ($ua =~ m[(?:Edge|Edg|EdgiOS|EdgA)/([.0-9]+)]o)
77 3 72 if ($ua =~ m[FxiOS/([.0-9]+)]o)
85 36 36 if ($ua =~ m[(?:Chrome|CrMo|CriOS)/([.0-9]+)]o)
87 9 27 if ($ua =~ m[OPR/([.0-9]+)]o)
95 3 24 if (index($ua, 'wv') > -1)
107 30 6 if ($ua =~ m[Version/([.0-9]+)]o)
118 375 27 if index($ua, 'Firefox/') < 0
121 27 0 if ($ua =~ m[Firefox/([.0-9]+)]o) { }
135 345 30 if index($ua, 'Opera') < 0
138 12 18 if ($ua =~ m[Version/([.0-9]+)]o) { }
18 0 elsif ($ua =~ m[Opera[/ ]([.0-9]+)]o) { }
159 9 336 if ($ua =~ /iP(hone;|ad;|od) .*like Mac OS X/o) { }
3 333 elsif (index($ua, 'wv') > -1) { }
160 0 9 if index($ua, 'Safari/') > -1
162 3 6 if ($ua =~ m[Version/([.0-9]+)]o)
171 3 0 if ($ua =~ m[Version/([.0-9]+)]o)
187 165 3 if index($ua, 'Sleipnir/') < 0
190 3 0 if ($ua =~ m[Sleipnir/([.0-9]+)]o) { }