blib/lib/Event/io.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 86.9% 20 / 23 CC 2 SCAR 4.1
CC
2
Cov
94%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« blib/lib/Event/group.pm ↑ Summary blib/lib/Event/generic.pm »
1 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Event::io;
3 25 ▶use vars qw(@ISA @EXPORT_OK @ATTRIBUTE);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 25 @ISA = qw(Event::Watcher Exporter);
5 25 @EXPORT_OK = qw(R W E T); # bit constants
6 25 @ATTRIBUTE = qw(poll fd timeout timeout_cb);
7  
8 25 'Event::Watcher'->register;
9  
10 4967 ▶sub new {
Subroutine new: called CC=2 SCAR=7.0
Pod undocumented
11 # lock %Event::;
12  
13 4967 my $class = shift;
14 4967 my %arg = @_;
15 4967 ▶ my $o = allocate($class, delete $arg{attach_to} || {});
Condition50%1/2
delete $arg{'attach_to'} || {}
l!l
04967
MC/DC0%0/1
delete $arg{'attach_to'} || {}
delete $arg{'attach_to'}
Truth table50%1/2
A
A= delete $arg{'attach_to'}
Aresult
11
00
16 4967 $o->init(\%arg);
17 4964 $o;
18 }
19  
20 25 1;
« blib/lib/Event/group.pm ↑ Summary blib/lib/Event/generic.pm »