| 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 | 11 | 11 | 417502 | use strict; | |||
| 11 | 20 | ||||||
| 11 | 414 | ||||||
| 3 | 11 | 11 | 50 | use warnings; | |||
| 11 | 23 | ||||||
| 11 | 1458 | ||||||
| 4 | 11 | 11 | 544 | use Duadua::Util qw//; | |||
| 11 | 19 | ||||||
| 11 | 1213 | ||||||
| 5 | |||||||
| 6 | sub try { | ||||||
| 7 | 306 | 306 | 1 | 727 | my ($class, $d) = @_; | ||
| 8 | |||||||
| 9 | 306 | 100 | 614 | if ( $d->_contain('SAKURA Cloud Simplemon') ) { | |||
| 10 | 1 | 4 | my $h = { | ||||
| 11 | name => 'SAKURA Cloud Simplemon', | ||||||
| 12 | is_bot => 1, | ||||||
| 13 | }; | ||||||
| 14 | |||||||
| 15 | 1 | 4 | return $h; | ||||
| 16 | } | ||||||
| 17 | } | ||||||
| 18 | |||||||
| 19 | 1; | ||||||
| 20 | |||||||
| 21 | __END__ |