blib/lib/UAV/Pilot/EventHandler.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 4 | 6 | 66.6 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 6 | 8 | 75.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package UAV::Pilot::EventHandler; | ||||||
2 | 1 | 1 | 1660 | use v5.14; | |||
1 | 4 | ||||||
1 | 37 | ||||||
3 | 1 | 1 | 442 | use Moose::Role; | |||
0 | |||||||
0 | |||||||
4 | |||||||
5 | requires 'process_events'; | ||||||
6 | |||||||
7 | 1; | ||||||
8 | __END__ | ||||||
9 | |||||||
10 | |||||||
11 | =head1 NAME | ||||||
12 | |||||||
13 | UAV::Pilot::EventHandler | ||||||
14 | |||||||
15 | =head1 DESCRIPTION | ||||||
16 | |||||||
17 | Role for objects that will be passed into C<UAV::Pilot::Events>. | ||||||
18 | |||||||
19 | Requires the method C<process_events>, which will be called to handle the events for this | ||||||
20 | object. | ||||||
21 | |||||||
22 | =cut |