blib/lib/Duadua/Parser/Bot/Feedeen.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 15 | 15 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Duadua::Parser::Bot::Feedeen; | ||||||
2 | 6 | 6 | 46 | use strict; | |||
6 | 11 | ||||||
6 | 158 | ||||||
3 | 6 | 6 | 27 | use warnings; | |||
6 | 9 | ||||||
6 | 415 | ||||||
4 | |||||||
5 | sub try { | ||||||
6 | 63 | 63 | 1 | 131 | my ($class, $d) = @_; | ||
7 | |||||||
8 | 63 | 100 | 158 | if ( index($d->ua, 'Mozilla/5.0 Feedeen ') > -1 ) { | |||
9 | return { | ||||||
10 | 1 | 6 | name => 'Feedeen', | ||||
11 | is_bot => 1, | ||||||
12 | }; | ||||||
13 | } | ||||||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 | |||||||
18 | __END__ |