| blib/lib/Duadua/Parser/Bot/OWLer.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::OWLer; | ||||||
| 2 | 11 | 11 | 72 | use strict; | |||
| 11 | 37 | ||||||
| 11 | 461 | ||||||
| 3 | 11 | 11 | 53 | use warnings; | |||
| 11 | 21 | ||||||
| 11 | 1430 | ||||||
| 4 | |||||||
| 5 | sub try { | ||||||
| 6 | 62 | 62 | 1 | 132 | my ($class, $d) = @_; | ||
| 7 | |||||||
| 8 | 62 | 100 | 155 | if ( $d->ua eq 'Owler (ows.eu/owler)' ) { | |||
| 9 | return { | ||||||
| 10 | 1 | 8 | name => 'OWLer', | ||||
| 11 | is_bot => 1, | ||||||
| 12 | }; | ||||||
| 13 | } | ||||||
| 14 | } | ||||||
| 15 | |||||||
| 16 | 1; | ||||||
| 17 | |||||||
| 18 | __END__ |