Branch Coverage

blib/lib/HTTP/DetectUserAgent.pm
Criterion Covered Total %
branch 0 180 0.0


line true false branch
16 0 0 unless (defined $user_agent)
25 0 0 if (defined $user_agent)
36 0 0 if ($self->{'type'} eq 'Browser')
43 0 0 if $self->_check_crawler($ua)
44 0 0 if (index($ua, 'opera') != -1)
49 0 0 if ($block->{'applewebkit'}) { }
0 0 elsif ($block->{'_comment'} and index($block->{'_comment'}, 'msie') != -1) { }
0 0 elsif ($block->{'gecko'}) { }
57 0 0 unless $self->_check_mobile($ua, $block) or $self->_check_mobile_pc_viewer($ua, $block) or $self->_check_other_browsers($ua, $block) or $self->_check_webservice($ua, $block) or $self->_check_robot($ua, $block)
64 0 0 if (not $self->{'name'})
73 0 0 unless $ua
77 0 0 if ($1) { }
0 0 elsif ($2) { }
0 0 elsif ($4) { }
90 0 0 if (index($ua, 'googlebot') != -1) { }
0 0 elsif (index($ua, 'mediapartners-google') != -1) { }
0 0 elsif (index($ua, 'feedfetcher-google') != -1) { }
0 0 elsif (index($ua, 'yahoo') != -1) { }
0 0 elsif (index($ua, 'msnbot') != -1) { }
0 0 elsif (index($ua, 'twiceler') != -1) { }
0 0 elsif (index($ua, 'baiduspider') != -1) { }
0 0 elsif (index($ua, 'baidumobaider') != -1) { }
0 0 elsif (index($ua, 'yeti') != -1 and index($ua, 'naver') != -1) { }
0 0 elsif (index($ua, 'ichiro') != -1) { }
0 0 elsif (index($ua, 'moba-crawler') != -1) { }
0 0 elsif (index($ua, 'masagool') != -1) { }
0 0 elsif (index($ua, 'ia_archiver') != -1) { }
0 0 elsif (index($ua, 'tagoobot') != -1) { }
0 0 elsif (index($ua, 'sogou web spider') != -1) { }
0 0 elsif (index($ua, 'daumoa') != -1) { }
0 0 elsif (index($ua, 'spider') != -1 or index($ua, 'crawler') != -1) { }
92 0 0 if (index($ua, 'mobile') != -1) { }
105 0 0 if (index($ua, 'slurp') != -1) { }
0 0 elsif (index($ua, 'y!j-srd') != -1 or index($ua, 'y!j-mbs') != -1) { }
0 0 elsif (index($ua, 'y!j-bsc') != -1) { }
0 0 elsif (index($ua, 'y!j-') != -1) { }
0 0 elsif (index($ua, 'yahoofeedseeker') != -1) { }
176 0 0 if ($self->{'name'})
185 0 0 if ($block->{'libwww-perl'}) { }
0 0 elsif ($block->{'web::scraper'}) { }
0 0 elsif ($block->{'php'}) { }
0 0 elsif ($block->{'java'}) { }
0 0 elsif ($block->{'wget'}) { }
0 0 elsif ($block->{'curl'}) { }
0 0 elsif (index($ua, 'h2tconv') != -1) { }
0 0 elsif ($block->{'plagger'}) { }
210 0 0 if ($self->{'name'})
219 0 0 if (index($ua, 'hatena bookmark') != -1) { }
0 0 elsif (index($ua, 'hatena antenna') != -1) { }
0 0 elsif ($ua =~ /yahoo pipes ([\d.]+)/) { }
0 0 elsif ($block->{'pathtraq'}) { }
236 0 0 if ($self->{'name'})
249 0 0 if ($ua =~ m[opera(?:/|\s+)([\d.]+)]) { }
261 0 0 if ($block->{'chrome'}) { }
0 0 elsif ($block->{'omniweb'}) { }
0 0 elsif ($block->{'shiira'}) { }
0 0 elsif ($block->{'safari'}) { }
287 0 0 if ($block->{'sleipnir'}) { }
0 0 elsif ($block->{'_comment'} =~ /lunascape\s+([\d.]+)/) { }
0 0 elsif ($block->{'_comment'} =~ m[kiki/([\d.]+)]) { }
0 0 elsif ($block->{'_comment'} =~ /msie\s+([\d.]+)/) { }
310 0 0 if ($block->{'flock'}) { }
0 0 elsif ($block->{'firefox'} or $block->{'granparadiso'} or $block->{'bonecho'}) { }
0 0 elsif ($block->{'netscape'}) { }
0 0 elsif ($block->{'iceweasel'}) { }
0 0 elsif ($block->{'seamonkey'}) { }
0 0 elsif ($block->{'camino'}) { }
321 0 0 if ($self->{'version'} =~ /(^[^;,]+)/)
351 0 0 if ($block->{'docomo'}) { }
0 0 elsif ($block->{'up.browser'} and $ua =~ /^KDDI-(\S+)/) { }
0 0 elsif (my $softbank = $block->{'softbank'} || $block->{'vodafone'} || $block->{'j-phone'}) { }
353 0 0 if ($ua =~ m[DoCoMo/\d\.\d[/\s]+([A-Za-z0-9]+)]) { }
367 0 0 if ($ua =~ m[(?:SoftBank|Vodafone|J-PHONE)/[\d.]+/([A-Za-z0-9]+)])
373 0 0 if ($self->{'name'})
383 0 0 if ($ua =~ /jig browser(?: web)?(?:\D+([\d.]+))*/) { }
0 0 elsif ($ua =~ /ibisBrowser/) { }
0 0 elsif ($block->{'mozilla'} and $ua =~ /([A-Za-z0-9]+);\s*FOMA/) { }
396 0 0 if ($self->{'name'})
405 0 0 if ($block->{'lynx'}) { }
0 0 elsif ($block->{'w3m'}) { }
0 0 elsif ($ua =~ m[konqueror/([\d.]+)]) { }
418 0 0 if ($self->{'name'})
427 0 0 if ($ua =~ /playstation portable(?:\D+([\d.]+))*/) { }
0 0 elsif ($ua =~ /playstation 3(?:\D+([\d.]+))*/) { }
436 0 0 if ($self->{'name'})
444 0 0 unless $ua
445 0 0 if ($ua =~ /iphone/) { }
0 0 elsif ($ua =~ /win(?:9[58]|dows|nt)/) { }
0 0 elsif ($ua =~ /mac(?:intosh|_(?:powerpc|68000))/) { }
0 0 elsif ($ua =~ /x11/) { }