| blib/lib/LINE/Bot/API/Event/BeaconDetection.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 13 | 13 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 7 | 7 | 100.0 |
| pod | 0 | 4 | 0.0 |
| total | 20 | 24 | 83.3 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package LINE::Bot::API::Event::BeaconDetection; | ||||||
| 2 | 51 | 51 | 343 | use strict; | |||
| 51 | 118 | ||||||
| 51 | 1441 | ||||||
| 3 | 51 | 51 | 251 | use warnings; | |||
| 51 | 101 | ||||||
| 51 | 1277 | ||||||
| 4 | 51 | 51 | 249 | use parent 'LINE::Bot::API::Event::Base'; | |||
| 51 | 113 | ||||||
| 51 | 288 | ||||||
| 5 | |||||||
| 6 | 1 | 1 | 0 | 4278 | sub is_beacon_detection_event { 1 } | ||
| 7 | |||||||
| 8 | 1 | 1 | 0 | 7 | sub beacon_hwid { $_[0]->{beacon}{hwid} } | ||
| 9 | 1 | 1 | 0 | 8 | sub beacon_type { $_[0]->{beacon}{type} } | ||
| 10 | 1 | 1 | 0 | 11 | sub beacon_device_message { pack 'H*', $_[0]->{beacon}{dm} } | ||
| 11 | |||||||
| 12 | 1; |