| blib/lib/Duadua/Parser/Bot/Huawei.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::Huawei; | ||||||
| 2 | 11 | 11 | 1215 | use strict; | |||
| 11 | 21 | ||||||
| 11 | 400 | ||||||
| 3 | 11 | 11 | 49 | use warnings; | |||
| 11 | 16 | ||||||
| 11 | 609 | ||||||
| 4 | 11 | 11 | 56 | use Duadua::Util qw//; | |||
| 11 | 19 | ||||||
| 11 | 1203 | ||||||
| 5 | |||||||
| 6 | sub try { | ||||||
| 7 | 307 | 307 | 1 | 664 | my ($class, $d) = @_; | ||
| 8 | |||||||
| 9 | 307 | 100 | 806 | if ( $d->_contain('AspiegelBot') ) { | |||
| 10 | 1 | 6 | my $h = { | ||||
| 11 | name => 'AspiegelBot', | ||||||
| 12 | is_bot => 1, | ||||||
| 13 | }; | ||||||
| 14 | |||||||
| 15 | 1 | 5 | return Duadua::Util->set_os($d, $h); | ||||
| 16 | } | ||||||
| 17 | } | ||||||
| 18 | |||||||
| 19 | 1; | ||||||
| 20 | |||||||
| 21 | __END__ |