Branch Coverage

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


line true false branch
28 0 0 unless defined $useragent or length $useragent < 1 or $useragent eq '-'
29 168 567 if (try_crawler($useragent, {}))
39 0 0 unless defined $useragent or length $useragent < 1 or $useragent eq '-'
41 168 567 if (try_crawler($useragent, $result))
45 234 333 if (try_browser($useragent, $result))
46 234 0 if (try_os($useragent, $result)) { }
53 78 255 if (try_mobilephone($useragent, $result))
57 33 222 if (try_appliance($useragent, $result))
61 9 213 if (try_misc($useragent, $result))
66 45 168 if (try_os($useragent, $result))
70 168 0 if (try_rare_cases($useragent, $result))
80 54 1416 if (Woothee::Crawler::challenge_google($useragent, $result))
83 282 1134 if (Woothee::Crawler::challenge_crawlers($useragent, $result))
92 66 501 if (Woothee::Browser::challenge_msie($useragent, $result))
95 9 492 if (Woothee::Browser::challenge_vivaldi($useragent, $result))
98 6 486 if (Woothee::Browser::challenge_yandex_browser($useragent, $result))
101 84 402 if (Woothee::Browser::challenge_safari_chrome($useragent, $result))
104 27 375 if (Woothee::Browser::challenge_firefox($useragent, $result))
107 30 345 if (Woothee::Browser::challenge_opera($useragent, $result))
110 12 333 if (Woothee::Browser::challenge_webview($useragent, $result))
121 99 348 if (Woothee::OS::challenge_windows($useragent, $result))
126 57 291 if (Woothee::OS::challenge_osx($useragent, $result))
131 45 246 if (Woothee::OS::challenge_linux($useragent, $result))
136 36 210 if (Woothee::OS::challenge_smartphone($useragent, $result))
141 18 192 if (Woothee::OS::challenge_mobilephone($useragent, $result))
146 6 186 if (Woothee::OS::challenge_appliance($useragent, $result))
151 18 168 if (Woothee::OS::challenge_misc($useragent, $result))
161 18 315 if (Woothee::MobilePhone::challenge_docomo($useragent, $result))
164 6 309 if (Woothee::MobilePhone::challenge_au($useragent, $result))
167 21 288 if (Woothee::MobilePhone::challenge_softbank($useragent, $result))
170 9 279 if (Woothee::MobilePhone::challenge_willcom($useragent, $result))
173 24 255 if (Woothee::MobilePhone::challenge_misc($useragent, $result))
182 15 240 if (Woothee::Appliance::challenge_playstation($useragent, $result))
185 6 234 if (Woothee::Appliance::challenge_nintendo($useragent, $result))
188 12 222 if (Woothee::Appliance::challenge_digitaltv($useragent, $result))
197 9 213 if (Woothee::Misc::challenge_desktoptools($useragent, $result))
206 0 168 if (Woothee::Misc::challenge_smartphone_patterns($useragent, $result))
209 3 165 if (Woothee::Browser::challenge_sleipnir($useragent, $result))
212 78 87 if (Woothee::Misc::challenge_http_library($useragent, $result))
215 18 69 if (Woothee::Misc::challenge_maybe_rss_reader($useragent, $result))
218 69 0 if (Woothee::Crawler::challenge_maybe_crawler($useragent, $result))