blib/lib/Duadua/Parser/Bot/OldReader.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 19 | 19 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Duadua::Parser::Bot::OldReader; | ||||||
2 | 6 | 6 | 745 | use strict; | |||
6 | 15 | ||||||
6 | 149 | ||||||
3 | 6 | 6 | 27 | use warnings; | |||
6 | 8 | ||||||
6 | 120 | ||||||
4 | 6 | 6 | 25 | use Duadua::Util qw//; | |||
6 | 20 | ||||||
6 | 385 | ||||||
5 | |||||||
6 | sub try { | ||||||
7 | 60 | 60 | 1 | 134 | my ($class, $d) = @_; | ||
8 | |||||||
9 | 60 | 100 | 138 | if ( index($d->ua, ' theoldreader.com;') > -1 ) { | |||
10 | return { | ||||||
11 | 1 | 5 | name => 'The Old Reader', | ||||
12 | is_bot => 1, | ||||||
13 | }; | ||||||
14 | } | ||||||
15 | } | ||||||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |