| 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
| |||||||||||
| 13 | 2 | $NS->__THROW( 'SocketPair', domain => $domain, type => $type, protocol => $protocol ); | |||||||||
| 14 | }; | ||||||||||
| 15 | |||||||||||
| 16 | 1 | return $ok; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | 1; | |||||||||