WebSocket/Base/Typed.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 80.0% 16 / 20 CC 2 SCAR 4.1
CC
2
Cov
93%
get_type
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« WebSocket/HTTP.pm ↑ Summary WebSocket/FrameTypeName.pm »
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
l!l&&r!l&&!r
891400
MC/DC0%0/2
ref $self || $self
ref $self $self
Truth table66%2/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
10  
11 229 my $last_colon = rindex( $class, ':' );
12 229 return substr( $class, 1 + $last_colon );
13 }
14  
15 24 1;
« WebSocket/HTTP.pm ↑ Summary WebSocket/FrameTypeName.pm »