Die/sysseek.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%
sysseek
2.0
BEGIN
1.0
CRAP 1.7
« Die/symlink.pm ↑ Summary Die/truncate.pm »
1 package IO::Die;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 #NOTE: See about read/sysread; the same duplicated code problem
6 #applies to seek/sysseek.
7  
8 5 ▶sub sysseek {
Subroutine sysseek: called CC=2 SCAR=6.9
9 5 my ( $NS, $fh, $pos, $whence ) = @_;
10  
11 5 local ( $!, $^E );
12 5 ▶ my $ok = CORE::sysseek( $fh, $pos, $whence ) or do {
Branch: 1 branch
BranchTrueFalseTotal
my $ok = CORE::sysseek($fh, $pos, $whence) or do { $NS->__THROW("FileSeek", "whence", $whence, "position", $pos) } 4 1 5
13 1 $NS->__THROW( 'FileSeek', whence => $whence, position => $pos );
14 };
15  
16 4 return $ok;
17 }
18  
19 1 1;
« Die/symlink.pm ↑ Summary Die/truncate.pm »