blib/lib/Net/WebSocket/FrameTypeName.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 10 | 10 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 15 | 16 | 93.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Net::WebSocket::FrameTypeName; | ||||||
2 | |||||||
3 | 4 | 4 | 29 | use strict; | |||
4 | 8 | ||||||
4 | 123 | ||||||
4 | 4 | 4 | 22 | use warnings; | |||
4 | 9 | ||||||
4 | 455 | ||||||
5 | |||||||
6 | sub get_module { | ||||||
7 | 7 | 7 | 0 | 22 | my ($name) = @_; | ||
8 | |||||||
9 | 7 | 100 | 38 | if (index($name, '::') != -1) { | |||
10 | 5 | 18 | return $name; | ||||
11 | } | ||||||
12 | |||||||
13 | 2 | 9 | return "Net::WebSocket::Frame::$name"; | ||||
14 | } | ||||||
15 | |||||||
16 | 1; |