blib/lib/Net/WebSocket/X/MissingHeaders.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 15 | 15 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Net::WebSocket::X::MissingHeaders; | ||||||
2 | |||||||
3 | 1 | 1 | 469 | use strict; | |||
1 | 1 | ||||||
1 | 27 | ||||||
4 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 23 | ||||||
5 | |||||||
6 | 1 | 1 | 4 | use parent qw( Net::WebSocket::X::Base ); | |||
1 | 1 | ||||||
1 | 4 | ||||||
7 | |||||||
8 | sub _new { | ||||||
9 | 1 | 1 | 150 | my ($class, @names) = @_; | |||
10 | |||||||
11 | 1 | 20 | return $class->SUPER::_new( | ||||
12 | sprintf("Missing header(s): @names"), | ||||||
13 | names => \@names, | ||||||
14 | ); | ||||||
15 | } | ||||||
16 | |||||||
17 | 1; |