blib/lib/POSIX/SigAction.pm

filter: Statementstmt 56.5% 13 / 23 Branchbran 0.0% 0 / 8 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 44.4% 4 / 9 Podpod 100% 5 / 5 totaltotal 45.8% 22 / 48 CC 6 SCAR 15.2
CC
6
Cov
39%
new
6.0
handler
6.0
mask
6.0
CRAP 4.6
« blib/lib/POSIX/1003/Errno.pm ↑ Summary blib/lib/POSIX/1003/Events.pm »
1 # Copyrights 2011-2013 by [Mark Overmeer].
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.01.
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶no warnings 'redefine', 'prototype'; # during release of distribution
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11  
12 sub POSIX::SigAction::new
13 0 ▶{ my $class = shift;
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
14 0 ▶ bless {HANDLER => $_[0], MASK => $_[1], FLAGS => $_[2] || 0, SAFE => 0},
Condition0%0/2
$_[2] || 0
l!l
00
MC/DC0%0/1
$_[2] || 0
$_[2]
Truth table0%0/2
A
A= $_[2]
Aresult
11
00
15 $class;
16 }
17  
18 #---------------------------
19  
20 # We cannot use a "package" statement, because it confuses CPAN: the
21 # namespace is assigned to the perl core distribution.
22 2 ▶no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
23 sub POSIX::SigAction::handler($;$)
24 0 ▶{ $_[0]->{HANDLER} = $_[1] if @_ > 1; $_[0]->{HANDLER} }
Subroutine handler: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 0 0 0
25  
26 sub POSIX::SigAction::mask($;$)
27 0 ▶{ $_[0]->{MASK} = $_[1] if @_ > 1; $_[0]->{MASK} }
Subroutine mask: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 0 0 0
28  
29 sub POSIX::SigAction::flags($;$)
30 0 ▶{ $_[0]->{FLAGS} = $_[1] if @_ > 1; $_[0]->{FLAGS} }
Subroutine flags: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 0 0 0
31  
32 sub POSIX::SigAction::safe($;$)
33 0 ▶{ $_[0]->{SAFE} = $_[1] if @_ > 1; $_[0]->{SAFE} }
Subroutine safe: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 0 0 0
34  
35 2 1;
« blib/lib/POSIX/1003/Errno.pm ↑ Summary blib/lib/POSIX/1003/Events.pm »