Branch Coverage

blib/lib/Woothee/Appliance.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
18 3 252 if (index($ua, 'PSP (PlayStation Portable);') > -1) { }
3 249 elsif (index($ua, 'PlayStation Vita') > -1) { }
6 243 elsif (index($ua, 'PLAYSTATION 3 ') > -1 or index($ua, 'PLAYSTATION 3;') > -1) { }
3 240 elsif (index($ua, 'PlayStation 4 ') > -1) { }
19 3 0 if ($ua =~ /PSP \(PlayStation Portable\); ([.0-9]+)\)/)
25 3 0 if ($ua =~ /PlayStation Vita ([.0-9]+)\)/)
31 6 0 if ($ua =~ /PLAYSTATION 3;? ([.0-9]+)\)/)
37 3 0 if ($ua =~ /PlayStation 4 ([.0-9]+)\)/)
43 240 15 unless $data
46 15 0 if ($os_version)
57 3 237 if (index($ua, 'Nintendo 3DS;') > -1) { }
0 237 elsif (index($ua, 'Nintendo DSi;') > -1) { }
0 237 elsif (index($ua, 'Nintendo Wii;') > -1) { }
3 234 elsif (index($ua, '(Nintendo WiiU)') > -1) { }
70 234 6 unless $data
83 12 222 if (index($ua, 'InettvBrowser/') > -1)
87 222 12 unless $data