Branch Coverage

blib/lib/Woothee/Misc.pm
Criterion Covered Total %
branch 34 36 94.4


line true false branch
17 3 219 if (index($ua, 'AppleSyndication/') > -1) { }
3 216 elsif (index($ua, 'compatible; Google Desktop/') > -1) { }
3 213 elsif (index($ua, 'Windows-RSS-Platform') > -1) { }
27 213 9 unless $data
36 0 168 if (index($ua, 'CFNetwork/') > -1)
52 12 153 if ($ua =~ m[^(?:Apache-HttpClient/|Jakarta Commons-HttpClient/|Java/)]o or $ua =~ m[[- ]HttpClient(/|$)]o) { }
3 150 elsif (index($ua, 'Java(TM) 2 Runtime Environment,') > -1) { }
3 147 elsif ($ua =~ m[^Wget/]o) { }
3 144 elsif ($ua =~ m[^curl/]o) { }
15 129 elsif ($ua =~ /^(?:libwww-perl|WWW-Mechanize|LWP::Simple|LWP |lwp-trivial)/o) { }
9 120 elsif ($ua =~ /^(?:Ruby|feedzirra|Typhoeus)/o) { }
6 114 elsif ($ua =~ m[^(?:Python-urllib/|Twisted )]o) { }
27 87 elsif ($ua =~ m[^(?:PHP|WordPress|CakePHP|PukiWiki|PECL::HTTP)(?:/| |$)]o or $ua =~ /(?:PEAR |)HTTP_Request(?: class|2)/o) { }
87 87 78 unless $data
90 78 0 if defined $version
99 15 72 if ($ua =~ m[rss(?:reader|bar|[-_ /;()]|[ +]*/)]io or $ua =~ /headline-reader/io) { }
3 69 elsif (index($ua, 'cococ/') > -1) { }
106 69 18 unless $data