Die/getsockopt.pm

filter: Statementstmt 90.0% 9 / 10 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 85.7% 12 / 14 CC 2 SCAR 5.4
CC
2
Cov
83%
getsockopt
2.1
BEGIN
1.0
CRAP 1.7
« Die/exec.pm ↑ Summary Die/fork.pm »
1 package IO::Die;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶sub getsockopt {
Subroutine getsockopt: called CC=2 SCAR=7.2
6 1 my ( $NS, $socket, $level, $optname ) = @_;
7  
8 1 local ( $!, $^E );
9 1 my $res = CORE::getsockopt( $socket, $level, $optname );
10 1 ▶ if ( !defined $res ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $res) 0 1 1
11 0 $NS->__THROW( 'SocketGetOpt', level => $level, optname => $optname );
12 }
13  
14 1 return $res;
15 }
16  
17 1 1;
« Die/exec.pm ↑ Summary Die/fork.pm »