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/Message.pm ↑ Summary WebSocket/X/BadToken.pm »
1 package Net::WebSocket::Base::Typed;
2  
3 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub get_type {
7 112 ▶ my ($self) = @_;
Subroutine get_type: called CC=2 SCAR=7.0
Pod undocumented
8  
9 112 ▶ my $class = ref($self) || $self;
Condition66%2/3
ref $self || $self
l!l&&r!l&&!r
47650
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 112 my $last_colon = rindex( $class, ':' );
12 112 return substr( $class, 1 + $last_colon );
13 }
14  
15 9 1;
« WebSocket/Message.pm ↑ Summary WebSocket/X/BadToken.pm »