blib/lib/LINE/Bot/API/Event/Postback.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 16 | 18 | 88.8 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package LINE::Bot::API::Event::Postback; | ||||||
2 | 51 | 51 | 432 | use strict; | |||
51 | 118 | ||||||
51 | 1462 | ||||||
3 | 51 | 51 | 255 | use warnings; | |||
51 | 104 | ||||||
51 | 1528 | ||||||
4 | 51 | 51 | 256 | use parent 'LINE::Bot::API::Event::Base'; | |||
51 | 1406 | ||||||
51 | 394 | ||||||
5 | |||||||
6 | 1 | 1 | 0 | 4066 | sub is_postback_event { 1 } | ||
7 | |||||||
8 | 1 | 1 | 0 | 6 | sub postback_data { $_[0]->{postback}{data} } | ||
9 | |||||||
10 | 1; |