IOMux/Handler/Service.pm

filter: Statementstmt 70.8% 17 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 100% 3 / 3 totaltotal 71.4% 25 / 35 CC 1 SCAR 3.2
CC
1
Cov
71%
muxInit
2.0
muxRemove
2.0
muxConnection
2.0
CRAP 1.4
« IOMux/Open.pm ↑ Summary
1 # Copyrights 2011-2020 by [Mark Overmeer <markov@cpan.org>].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.02.
5 # This code is part of distribution IOMux. Meta-POD processed with OODoc
6 # into POD and HTML manual-pages. See README.md
7 # Copyright Mark Overmeer. Licensed under the same terms as Perl itself.
8  
9 package IOMux::Handler::Service;
10 1 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 $VERSION = '1.01';
12  
13 1 ▶use base 'IOMux::Handler';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 1 ▶use Log::Report 'iomux';
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20  
21 sub muxInit($)
22 0 ▶{ my ($self, $mux) = @_;
Subroutine muxInit: not called CC=1 SCAR=6.9
Pod documented
23 0 $self->SUPER::muxInit($mux);
24 0 $self->fdset(1, 1, 0, 0); # 'read' new connections
25 }
26  
27 sub muxRemove()
28 0 ▶{ my $self = shift;
Subroutine muxRemove: not called CC=1 SCAR=6.9
Pod documented
29 0 $self->SUPER::muxRemove;
30 0 $self->fdset(0, 1, 0, 0);
31 }
32  
33 #----------
34  
35 0 ▶sub muxConnection($) {shift}
Subroutine muxConnection: not called CC=1 SCAR=6.9
Pod documented
36  
37 1 1;
« IOMux/Open.pm ↑ Summary