| blib/lib/Duadua/Parser/Bot/Sakura.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 13 | 13 | 100.0 |
| branch | 2 | 2 | 100.0 |
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | 1 | 1 | 100.0 |
| total | 20 | 20 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Duadua::Parser::Bot::Sakura; | ||||||
| 2 | 6 | 6 | 37 | use strict; | |||
| 6 | 16 | ||||||
| 6 | 165 | ||||||
| 3 | 6 | 6 | 28 | use warnings; | |||
| 6 | 10 | ||||||
| 6 | 132 | ||||||
| 4 | 6 | 6 | 30 | use Duadua::Util qw//; | |||
| 6 | 10 | ||||||
| 6 | 511 | ||||||
| 5 | |||||||
| 6 | sub try { | ||||||
| 7 | 292 | 292 | 1 | 529 | my ($class, $d) = @_; | ||
| 8 | |||||||
| 9 | 292 | 100 | 506 | if ( index($d->ua, 'SAKURA Cloud Simplemon') > -1 ) { | |||
| 10 | 1 | 6 | my $h = { | ||||
| 11 | name => 'SAKURA Cloud Simplemon', | ||||||
| 12 | is_bot => 1, | ||||||
| 13 | }; | ||||||
| 14 | |||||||
| 15 | 1 | 7 | return $h; | ||||
| 16 | } | ||||||
| 17 | } | ||||||
| 18 | |||||||
| 19 | 1; | ||||||
| 20 | |||||||
| 21 | __END__ |