blib/lib/Thunderhorse/WebSocket.pm

filter: Statementstmt 84.2% 16 / 19 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 50.0% 1 / 2 totaltotal 79.3% 23 / 29 CC 2 SCAR 3.7
CC
2
Cov
81%
FOREIGNBUILDARGS
2.1
update
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Thunderhorse/SSE.pm ↑ Summary blib/lib/Thunderhorse/Message.pm »
1 package Thunderhorse::WebSocket;
2 24 $Thunderhorse::WebSocket::VERSION = '0.107';
3 24 ▶use v5.40;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 24 ▶use Mooish::Base -standard;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 24 ▶use Future::AsyncAwait;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 24 ▶use Gears::X::Thunderhorse;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 24 extends 'PAGI::WebSocket';
10 24 with 'Thunderhorse::Message';
11  
12 3 ▶sub FOREIGNBUILDARGS ($class, %args)
Subroutine FOREIGNBUILDARGS: called CC=2 SCAR=7.2
Pod undocumented
13 {
14 Gears::X::Thunderhorse->raise('no context for websocket')
15 3 ▶ unless $args{context};
Branch: 1 branch
BranchTrueFalseTotal
unless $args{"context"} 0 3 3
16  
17 3 return $args{context}->pagi->@*;
18 }
19  
20 0 ▶sub update ($self, $scope, $receive, $send)
Subroutine update: not called CC=1 SCAR=6.9
Pod documented
21 {
22 0 $self->{scope} = $scope;
23 0 $self->{receive} = $receive;
24 0 $self->{send} = $send;
25 }
26  
27 __END__
« blib/lib/Thunderhorse/SSE.pm ↑ Summary blib/lib/Thunderhorse/Message.pm »