Branch Coverage

blib/lib/Duadua/Parser/HTTPClient/HTTPClient.pm
Criterion Covered Total %
branch 162 194 83.5


line true false branch
24 2 288 if (index($d->ua, 'curl/') == 0) { }
4 284 elsif (index($d->ua, 'Wget/') > -1) { }
29 1 1 if ($d->opt_version)
31 1 0 if $version
40 2 2 if (index($d->ua, 'linux-') > -1) { }
2 0 elsif (index($d->ua, 'mingw32') > -1) { }
47 2 2 if ($d->opt_version)
49 2 0 if $version
61 4 280 if (index($d->ua, 'libwww-perl/') > -1) { }
2 278 elsif (index($d->ua, 'WWW-Mechanize/') > -1) { }
4 274 elsif (index($d->ua, 'LWP::Simple/') > -1 or index($d->ua, 'lwp-trivial/') > -1) { }
2 272 elsif (index($d->ua, 'Furl::HTTP/') > -1) { }
2 270 elsif (index($d->ua, 'SOAP::Lite/Perl/') > -1) { }
2 268 elsif (index($d->ua, 'MT::Plugin::BadLinkFinder/') > -1) { }
66 2 2 if ($d->opt_version)
68 2 0 if $version
76 1 1 if ($d->opt_version)
78 1 0 if $version
86 2 2 if ($d->opt_version)
88 2 0 if $version
96 1 1 if ($d->opt_version)
98 1 0 if $version
106 1 1 if ($d->opt_version)
108 1 0 if $version
116 1 1 if ($d->opt_version)
118 1 0 if $version
130 2 266 if (index($d->ua, 'Python-urllib/') > -1) { }
2 264 elsif (index($d->ua, 'PycURL/') > -1) { }
2 262 elsif (index($d->ua, 'HTTPie/') > -1) { }
2 260 elsif (index($d->ua, 'AdsTxtCrawler/') > -1) { }
2 258 elsif (index($d->ua, 'python-requests/') > -1) { }
2 256 elsif (index($d->ua, ' aiohttp/') > -1) { }
135 1 1 if ($d->opt_version)
137 1 0 if $version
145 1 1 if ($d->opt_version)
147 1 0 if $version
155 1 1 if ($d->opt_version)
157 1 0 if $version
165 1 1 if ($d->opt_version)
167 1 0 if $version
175 1 1 if ($d->opt_version)
177 1 0 if $version
185 1 1 if ($d->opt_version)
187 1 0 if $version
199 2 254 if (index($d->ua, 'GuzzleHttp/') > -1) { }
4 250 elsif (index($d->ua, 'WordPress/') == 0 or index($d->ua, 'The Incutio XML-RPC PHP Library -- WordPress/') > -1) { }
2 248 elsif (index($d->ua, ' PHP/') > -1) { }
1 247 elsif ($d->ua eq 'Zend_XmlRpc_Client') { }
204 1 1 if ($d->opt_version)
206 1 0 if $version
214 2 2 if ($d->opt_version)
216 2 0 if $version
224 1 1 if ($d->opt_version)
226 1 0 if $version
243 2 245 if (index($d->ua, 'okhttp/') > -1) { }
2 243 elsif (index($d->ua, 'Jakarta Commons-HttpClient/') > -1) { }
2 241 elsif (index($d->ua, 'Apache-HttpClient/') > -1) { }
2 239 elsif (index($d->ua, 'Jersey/') > -1) { }
2 237 elsif (index($d->ua, 'Java/') > -1) { }
2 235 elsif (index($d->ua, 'Dalvik/') > -1) { }
248 1 1 if ($d->opt_version)
250 1 0 if $version
258 1 1 if ($d->opt_version)
260 1 0 if $version
268 1 1 if ($d->opt_version)
270 1 0 if $version
278 1 1 if ($d->opt_version)
280 1 0 if $version
288 1 1 if ($d->opt_version)
290 1 0 if $version
300 1 1 if ($d->opt_version)
302 1 0 if $version
312 2 233 if (index($d->ua, 'Go-http-client/') > -1) { }
2 231 elsif (index($d->ua, 'Go ') > -1 and index($d->ua, ' package http') > -1) { }
1 230 elsif (index($d->ua, 'Go http package') == 0) { }
317 1 1 if ($d->opt_version)
319 1 0 if $version
329 1 1 if ($d->opt_version)
331 1 0 if $version
348 1 229 if ($d->ua eq 'Ruby') { }
2 227 elsif (index($d->ua, 'http.rb/') > -1) { }
2 225 elsif (index($d->ua, 'Atig::Http/') > -1) { }
1 224 elsif (index($d->ua, 'EventMachine ') > -1) { }
358 1 1 if ($d->opt_version)
360 1 0 if $version
369 2 0 if (index($d->ua, "linux") > -1)
373 1 1 if ($d->opt_version)
375 1 0 if $version
390 2 220 if (index($d->ua, " WinHttp.WinHttpRequest") > -1)
396 1 1 if ($d->opt_version)
398 1 0 if $version
408 2 222 if (index($d->ua, "axios/") == 0)
413 1 1 if ($d->opt_version)
415 1 0 if $version
425 2 218 if (index($d->ua, "PostmanRuntime") > -1)
430 1 1 if ($d->opt_version)
432 1 0 if $version