blib/lib/Beam/Listener.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 16 | 16 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Beam::Listener; | ||||||
2 | our $VERSION = '1.005'; | ||||||
3 | |||||||
4 | 9 | 9 | 7583 | use strict; | |||
9 | 21 | ||||||
9 | 378 | ||||||
5 | 9 | 9 | 41 | use warnings; | |||
9 | 16 | ||||||
9 | 452 | ||||||
6 | |||||||
7 | 9 | 9 | 55 | use Types::Standard qw(:all); | |||
9 | 14 | ||||||
9 | 280 | ||||||
8 | 9 | 9 | 344464 | use Moo; | |||
9 | 34 | ||||||
9 | 129 | ||||||
9 | |||||||
10 | #pod =attr code | ||||||
11 | #pod | ||||||
12 | #pod A coderef which will be invoked when the event is distributed. | ||||||
13 | #pod | ||||||
14 | #pod =cut | ||||||
15 | |||||||
16 | has callback => ( | ||||||
17 | is => 'ro', | ||||||
18 | isa => CodeRef, | ||||||
19 | required => 1, | ||||||
20 | ); | ||||||
21 | |||||||
22 | 1; | ||||||
23 | |||||||
24 | __END__ |