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