Die/systell.pm

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
systell
1.0
CRAP 1.0
« Die/truncate.pm ↑ Summary
1 package IO::Die;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 #----------------------------------------------------------------------
6 # CONVENIENCE
7 #
8  
9 1 my $Fcntl_SEEK_CUR = 1;
10  
11 #Note that, since we die() on error, this does NOT return "0 but true"
12 #as sysseek() does; instead it returns just a plain 0.
13 3 ▶sub systell {
Subroutine systell: called CC=1 SCAR=0.0
14 3 my ( $NS, $fh ) = @_;
15  
16 #cf. perldoc -f tell
17 3 return 0 + $NS->sysseek( $fh, 0, $Fcntl_SEEK_CUR );
18 }
19  
20 1 1;
« Die/truncate.pm ↑ Summary