| blib/lib/Duadua/Parser/Bot/YahooSlurp.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::YahooSlurp; | ||||||
| 2 | 11 | 11 | 73 | use strict; | |||
| 11 | 39 | ||||||
| 11 | 434 | ||||||
| 3 | 11 | 11 | 52 | use warnings; | |||
| 11 | 24 | ||||||
| 11 | 1446 | ||||||
| 4 | |||||||
| 5 | sub try { | ||||||
| 6 | 233 | 233 | 1 | 480 | my ($class, $d) = @_; | ||
| 7 | |||||||
| 8 | 233 | 100 | 605 | if ( $d->_contain(' Yahoo! Slurp;') ) { | |||
| 9 | return { | ||||||
| 10 | 1 | 6 | name => 'Yahoo! Slurp', | ||||
| 11 | is_bot => 1, | ||||||
| 12 | }; | ||||||
| 13 | } | ||||||
| 14 | } | ||||||
| 15 | |||||||
| 16 | 1; | ||||||
| 17 | |||||||
| 18 | __END__ |