Clio/ClientOutputFilter/jQueryStream.pm

filter: Statementstmt 52.1% 12 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 53.5% 15 / 28 CC 1 SCAR 3.4
CC
1
Cov
52%
__ANON__
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.4
« Clio/Log.pm ↑ Summary Clio/Server.pm »
1  
2 package Clio::ClientOutputFilter::jQueryStream;
3 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 $Clio::ClientOutputFilter::jQueryStream::AUTHORITY = 'cpan:AJGB';
5 }
6 {
7 1 $Clio::ClientOutputFilter::jQueryStream::VERSION = '0.02';
8 }
9 # ABSTRACT: Client output filter for jQueryStream
10  
11 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14  
15 0 ▶around 'handshake' => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
16 0 my $orig = shift;
17 0 my $self = shift;
18  
19 0 $self->log->trace(__PACKAGE__, " in use for handshake");
20 0 my $msg = $self->id
21 .';'.
22 " " x 1024
23 .';';
24  
25 0 $self->writer->write( $msg );
26  
27 0 $self->$orig( @_ );
28 1 };
29  
30  
31 0 ▶around 'write' => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 my $orig = shift;
33 0 my $self = shift;
34  
35 0 $self->log->trace(__PACKAGE__, " in use for write");
36  
37 $self->$orig(
38 map {
39 0 length($_)
40 .';'.
41 $_
42 .";\r\n"
43 } @_
44 );
45  
46 1 };
47  
48 1 1;
49  
50  
51  
52 __END__
« Clio/Log.pm ↑ Summary Clio/Server.pm »