| 1 | package IO::Die; | ||||||||||
| 2 | |||||||||||
| 3 | 10 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 24 | ▶ | sub opendir { | ||||||||
|
Subroutine
opendir: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 6 | 24 | my ( $NS, $dir ) = ( shift, @_[ 1 .. $#_ ] ); | |||||||||
| 7 | |||||||||||
| 8 | #https://github.com/pjcj/Devel--Cover/issues/125 | ||||||||||
| 9 | #my ( $NS, $dh_r, $dir ) = ( shift, \shift, shift ); | ||||||||||
| 10 | |||||||||||
| 11 | 24 | local ( $!, $^E ); | |||||||||
| 12 | 24 | ▶ | my $ok = CORE::opendir( $_[0], $dir ) or do { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 5 | $NS->__THROW( 'DirectoryOpen', path => $dir ); | |||||||||
| 14 | }; | ||||||||||
| 15 | |||||||||||
| 16 | 19 | return $ok; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | 1; | |||||||||