| 1 | package Net::WebSocket::Base::Typed; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 24 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 24 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 229 | ▶ | sub get_type { | ||||||||||||||||||
|
Subroutine
get_type: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||||||||||||
| 7 | 229 | my ($self) = @_; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 229 | ▶ | my $class = ref($self) || $self; | ||||||||||||||||||
|
Condition66%2/3
ref $self || $self
MC/DC0%0/2
ref $self || $self
ref $self
$self
Truth table66%2/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 229 | my $last_colon = rindex( $class, ':' ); | |||||||||||||||||||
| 12 | 229 | return substr( $class, 1 + $last_colon ); | |||||||||||||||||||
| 13 | } | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 24 | 1; | |||||||||||||||||||