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 | 47 | 47 | 319 | use strict; | |||
47 | 90 | ||||||
47 | 1418 | ||||||
3 | 47 | 47 | 237 | use warnings; | |||
47 | 88 | ||||||
47 | 1362 | ||||||
4 | 47 | 47 | 247 | use parent 'LINE::Bot::API::Event::Base'; | |||
47 | 1172 | ||||||
47 | 352 | ||||||
5 | |||||||
6 | 1 | 1 | 0 | 3927 | sub is_postback_event { 1 } | ||
7 | |||||||
8 | 1 | 1 | 0 | 6 | sub postback_data { $_[0]->{postback}{data} } | ||
9 | |||||||
10 | 1; |