blib/lib/Net/WebSocket/Base/Typed.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 10 | 10 | 100.0 |
branch | n/a | ||
condition | 2 | 3 | 66.6 |
subroutine | 3 | 3 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 15 | 17 | 88.2 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Net::WebSocket::Base::Typed; | ||||||
2 | |||||||
3 | 6 | 6 | 2214 | use strict; | |||
6 | 17 | ||||||
6 | 190 | ||||||
4 | 6 | 6 | 37 | use warnings; | |||
6 | 14 | ||||||
6 | 470 | ||||||
5 | |||||||
6 | sub get_type { | ||||||
7 | 100 | 100 | 0 | 15123 | my ($self) = @_; | ||
8 | |||||||
9 | 100 | 66 | 311 | my $class = ref($self) || $self; | |||
10 | |||||||
11 | 100 | 211 | my $last_colon = rindex( $class, ':' ); | ||||
12 | 100 | 362 | return substr( $class, 1 + $last_colon ); | ||||
13 | } | ||||||
14 | |||||||
15 | 1; |