| 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'} || {}
MC/DC0%0/1
delete $arg{'attach_to'} || {}
delete $arg{'attach_to'}
Truth table50%1/2
A
A= delete $arg{'attach_to'}
| |||||||||||||
| 16 | 4967 | $o->init(\%arg); | |||||||||||
| 17 | 4964 | $o; | |||||||||||
| 18 | } | ||||||||||||
| 19 | |||||||||||||
| 20 | 25 | 1; | |||||||||||