| blib/lib/Device/MindWave/Packet/Dongle/RequestDenied.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 18 | 18 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 8 | 8 | 100.0 |
| pod | 5 | 5 | 100.0 |
| total | 31 | 31 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Device::MindWave::Packet::Dongle::RequestDenied; | ||||||
| 2 | |||||||
| 3 | 6 | 6 | 23906 | use strict; | |||
| 6 | 22 | ||||||
| 6 | 172 | ||||||
| 4 | 6 | 6 | 29 | use warnings; | |||
| 6 | 7 | ||||||
| 6 | 149 | ||||||
| 5 | |||||||
| 6 | 6 | 6 | 28 | use base qw(Device::MindWave::Packet::Dongle); | |||
| 6 | 15 | ||||||
| 6 | 1907 | ||||||
| 7 | |||||||
| 8 | sub new | ||||||
| 9 | { | ||||||
| 10 | 8 | 8 | 1 | 4247 | my ($class) = @_; | ||
| 11 | 8 | 19 | my $self = {}; | ||||
| 12 | 8 | 22 | bless $self, $class; | ||||
| 13 | 8 | 40 | return $self; | ||||
| 14 | } | ||||||
| 15 | |||||||
| 16 | sub code | ||||||
| 17 | { | ||||||
| 18 | 1 | 1 | 1 | 368 | return 0xD3; | ||
| 19 | } | ||||||
| 20 | |||||||
| 21 | sub as_bytes | ||||||
| 22 | { | ||||||
| 23 | 5 | 5 | 1 | 14 | my ($self) = @_; | ||
| 24 | |||||||
| 25 | 5 | 315 | return [ 0xD3, 0x00 ]; | ||||
| 26 | } | ||||||
| 27 | |||||||
| 28 | sub length | ||||||
| 29 | { | ||||||
| 30 | 1 | 1 | 1 | 2 | return 2; | ||
| 31 | } | ||||||
| 32 | |||||||
| 33 | sub as_string | ||||||
| 34 | { | ||||||
| 35 | 1 | 1 | 1 | 339 | return "Request denied"; | ||
| 36 | } | ||||||
| 37 | |||||||
| 38 | 1; | ||||||
| 39 | |||||||
| 40 | __END__ |