Die/socketpair.pm

filter: Statementstmt 100% 9 / 9 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 2 SCAR 5.1
CC
2
Cov
100%
socketpair
2.0
BEGIN
1.0
CRAP 1.7
« Die/socket.pm ↑ Summary Die/symlink.pm »
1 package IO::Die;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 ▶sub socketpair {
Subroutine socketpair: called CC=2 SCAR=6.9
6 3 my ( $NS, $domain, $type, $protocol ) = ( shift, @_[ 2 .. $#_ ] );
7  
8 #https://github.com/pjcj/Devel--Cover/issues/125
9 #my ( $NS, $socket1_r, $socket2_r, $domain, $type, $protocol ) = ( \shift, \shift, shift, shift );
10  
11 3 local ( $!, $^E );
12 3 ▶ my $ok = CORE::socketpair( $_[0], $_[1], $domain, $type, $protocol ) or do {
Branch: 1 branch
BranchTrueFalseTotal
my $ok = CORE::socketpair($_[0], $_[1], $domain, $type, $protocol) or do { $NS->__THROW("SocketPair", "domain", $domain, "type", $type, "protocol", $protocol) } 1 2 3
13 2 $NS->__THROW( 'SocketPair', domain => $domain, type => $type, protocol => $protocol );
14 };
15  
16 1 return $ok;
17 }
18  
19 1 1;
« Die/socket.pm ↑ Summary Die/symlink.pm »