Branch Coverage

blib/lib/Woothee.pm
Criterion Covered Total %
branch 72 80 90.0


line true false branch
27 0 0 unless defined $useragent or length $useragent < 1 or $useragent eq '-'
28 168 549 if (try_crawler($useragent, {}))
38 0 0 unless defined $useragent or length $useragent < 1 or $useragent eq '-'
40 168 549 if (try_crawler($useragent, $result))
44 216 333 if (try_browser($useragent, $result))
45 216 0 if (try_os($useragent, $result)) { }
52 78 255 if (try_mobilephone($useragent, $result))
56 33 222 if (try_appliance($useragent, $result))
60 9 213 if (try_misc($useragent, $result))
65 45 168 if (try_os($useragent, $result))
69 168 0 if (try_rare_cases($useragent, $result))
79 54 1380 if (Woothee::Crawler::challenge_google($useragent, $result))
82 282 1098 if (Woothee::Crawler::challenge_crawlers($useragent, $result))
91 66 483 if (Woothee::Browser::challenge_msie($useragent, $result))
94 9 474 if (Woothee::Browser::challenge_vivaldi($useragent, $result))
97 72 402 if (Woothee::Browser::challenge_safari_chrome($useragent, $result))
100 27 375 if (Woothee::Browser::challenge_firefox($useragent, $result))
103 30 345 if (Woothee::Browser::challenge_opera($useragent, $result))
106 12 333 if (Woothee::Browser::challenge_webview($useragent, $result))
117 93 336 if (Woothee::OS::challenge_windows($useragent, $result))
122 54 282 if (Woothee::OS::challenge_osx($useragent, $result))
127 36 246 if (Woothee::OS::challenge_linux($useragent, $result))
132 36 210 if (Woothee::OS::challenge_smartphone($useragent, $result))
137 18 192 if (Woothee::OS::challenge_mobilephone($useragent, $result))
142 6 186 if (Woothee::OS::challenge_appliance($useragent, $result))
147 18 168 if (Woothee::OS::challenge_misc($useragent, $result))
157 18 315 if (Woothee::MobilePhone::challenge_docomo($useragent, $result))
160 6 309 if (Woothee::MobilePhone::challenge_au($useragent, $result))
163 21 288 if (Woothee::MobilePhone::challenge_softbank($useragent, $result))
166 9 279 if (Woothee::MobilePhone::challenge_willcom($useragent, $result))
169 24 255 if (Woothee::MobilePhone::challenge_misc($useragent, $result))
178 15 240 if (Woothee::Appliance::challenge_playstation($useragent, $result))
181 6 234 if (Woothee::Appliance::challenge_nintendo($useragent, $result))
184 12 222 if (Woothee::Appliance::challenge_digitaltv($useragent, $result))
193 9 213 if (Woothee::Misc::challenge_desktoptools($useragent, $result))
202 0 168 if (Woothee::Misc::challenge_smartphone_patterns($useragent, $result))
205 3 165 if (Woothee::Browser::challenge_sleipnir($useragent, $result))
208 78 87 if (Woothee::Misc::challenge_http_library($useragent, $result))
211 18 69 if (Woothee::Misc::challenge_maybe_rss_reader($useragent, $result))
214 69 0 if (Woothee::Crawler::challenge_maybe_crawler($useragent, $result))