Branch Coverage

blib/lib/Woothee.pm
Criterion Covered Total %
branch 74 82 90.2


line true false branch
27 0 0 unless defined $useragent or length $useragent < 1 or $useragent eq '-'
28 168 555 if (try_crawler($useragent, {}))
38 0 0 unless defined $useragent or length $useragent < 1 or $useragent eq '-'
40 168 555 if (try_crawler($useragent, $result))
44 222 333 if (try_browser($useragent, $result))
45 222 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 1392 if (Woothee::Crawler::challenge_google($useragent, $result))
82 282 1110 if (Woothee::Crawler::challenge_crawlers($useragent, $result))
91 66 489 if (Woothee::Browser::challenge_msie($useragent, $result))
94 9 480 if (Woothee::Browser::challenge_vivaldi($useragent, $result))
97 6 474 if (Woothee::Browser::challenge_yandex_browser($useragent, $result))
100 72 402 if (Woothee::Browser::challenge_safari_chrome($useragent, $result))
103 27 375 if (Woothee::Browser::challenge_firefox($useragent, $result))
106 30 345 if (Woothee::Browser::challenge_opera($useragent, $result))
109 12 333 if (Woothee::Browser::challenge_webview($useragent, $result))
120 96 339 if (Woothee::OS::challenge_windows($useragent, $result))
125 54 285 if (Woothee::OS::challenge_osx($useragent, $result))
130 39 246 if (Woothee::OS::challenge_linux($useragent, $result))
135 36 210 if (Woothee::OS::challenge_smartphone($useragent, $result))
140 18 192 if (Woothee::OS::challenge_mobilephone($useragent, $result))
145 6 186 if (Woothee::OS::challenge_appliance($useragent, $result))
150 18 168 if (Woothee::OS::challenge_misc($useragent, $result))
160 18 315 if (Woothee::MobilePhone::challenge_docomo($useragent, $result))
163 6 309 if (Woothee::MobilePhone::challenge_au($useragent, $result))
166 21 288 if (Woothee::MobilePhone::challenge_softbank($useragent, $result))
169 9 279 if (Woothee::MobilePhone::challenge_willcom($useragent, $result))
172 24 255 if (Woothee::MobilePhone::challenge_misc($useragent, $result))
181 15 240 if (Woothee::Appliance::challenge_playstation($useragent, $result))
184 6 234 if (Woothee::Appliance::challenge_nintendo($useragent, $result))
187 12 222 if (Woothee::Appliance::challenge_digitaltv($useragent, $result))
196 9 213 if (Woothee::Misc::challenge_desktoptools($useragent, $result))
205 0 168 if (Woothee::Misc::challenge_smartphone_patterns($useragent, $result))
208 3 165 if (Woothee::Browser::challenge_sleipnir($useragent, $result))
211 78 87 if (Woothee::Misc::challenge_http_library($useragent, $result))
214 18 69 if (Woothee::Misc::challenge_maybe_rss_reader($useragent, $result))
217 69 0 if (Woothee::Crawler::challenge_maybe_crawler($useragent, $result))