Branch Coverage

blib/lib/Duadua/Parser/Bot/HatenaBot.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
9 77 13 if index($d->ua, "Hatena") == -1
11 2 11 if (index($d->ua, 'Hatena Antenna/') > -1) { }
2 9 elsif (index($d->ua, 'Hatena Pagetitle Agent/') > -1) { }
2 7 elsif (index($d->ua, 'Hatena Star UserAgent/') > -1) { }
2 5 elsif (index($d->ua, 'Hatena-Favicon/') > -1) { }
2 3 elsif (index($d->ua, 'Hatena::') > -1 and $d->ua =~ m[^(Hatena::[a-zA-Z:]+)/]) { }
3 0 elsif (index($d->ua, 'HatenaBookmark/') > -1) { }
17 1 1 if ($d->opt_version)
19 1 0 if $version
30 1 1 if ($d->opt_version)
32 1 0 if $version
43 1 1 if ($d->opt_version)
45 1 0 if $version
56 1 1 if ($d->opt_version)
58 1 0 if $version
69 1 1 if ($d->opt_version)
71 1 0 if $version
82 1 2 if ($d->opt_version)
84 1 0 if $version