blib/lib/POSIX/SigAction.pm

filter: Statementstmt 73.9% 17 / 23 Branchbran 25.0% 2 / 8 Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 66.6% 6 / 9 Podpod 100% 5 / 5 totaltotal 68.7% 33 / 48 CC 6 SCAR 12.3
CC
6
Cov
64%
handler
6.0
mask
6.0
flags
6.0
CRAP 3.4
« blib/lib/POSIX/1003/FdIO.pm ↑ Summary blib/lib/POSIX/1003/Errno.pm »
1 # Copyrights 2011-2020 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.02.
5 # This code is part of distribution POSIX-1003. Meta-POD processed with
6 # OODoc into POD and HTML manual-pages. See README.md
7 # Copyright Mark Overmeer. Licensed under the same terms as Perl itself.
8  
9 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 5 ▶no warnings 'redefine', 'prototype'; # during release of distribution
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14  
15  
16 sub POSIX::SigAction::new
17 16 ▶{ my $class = shift;
Subroutine new: called CC=2 SCAR=6.9
Pod documented
18 16 ▶ bless {HANDLER => $_[0], MASK => $_[1], FLAGS => $_[2] || 0, SAFE => 0},
Condition100%2/2
$_[2] || 0
l!l
115
MC/DC100%1/1
$_[2] || 0
$_[2]
Truth table100%2/2
A
A= $_[2]
Aresult
11
00
19 $class;
20 }
21  
22 #---------------------------
23  
24 # We cannot use a "package" statement, because it confuses CPAN: the
25 # namespace is assigned to the perl core distribution.
26 5 ▶no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
27 sub POSIX::SigAction::handler($;$)
28 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
29  
30 sub POSIX::SigAction::mask($;$)
31 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
32  
33 sub POSIX::SigAction::flags($;$)
34 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
35  
36 sub POSIX::SigAction::safe($;$)
37 4 ▶{ $_[0]->{SAFE} = $_[1] if @_ > 1; $_[0]->{SAFE} }
Subroutine safe: called CC=2 SCAR=6.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 1 3 4
38  
39 5 1;
« blib/lib/POSIX/1003/FdIO.pm ↑ Summary blib/lib/POSIX/1003/Errno.pm »