blib/lib/IO/Vectored.pm

filter: Statementstmt 100% 22 / 22 Branchbran 75.0% 3 / 4 Conditioncond 50.0% 3 / 6 MC/DCmcdc 25.0% 1 / 4 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 3 totaltotal 77.2% 34 / 44 CC 5 SCAR 9.0
CC
5
Cov
88%
sysreadv
3.3
syswritev
3.0
BEGIN
1.0
CRAP 2.4
↑ Summary Vectored.xs »
1 package IO::Vectored;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 5 our $VERSION = '0.110';
8  
9 5 require Exporter;
10 5 our @ISA = qw(Exporter);
11 5 our @EXPORT = qw(sysreadv syswritev);
12  
13 5 require XSLoader;
14 5 XSLoader::load('IO::Vectored', $VERSION);
15  
16  
17 5 ▶sub sysreadv(*@) {
Subroutine sysreadv: called CC=3 SCAR=12.0
Pod undocumented
18 5 my $fh = shift;
19  
20 5 my $fileno = fileno($fh);
21 5 ▶ croak("closed or invalid file-handle passed to sysreadv") if !defined $fileno || $fileno < 0;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $fileno or $fileno < 0 0 5 5
Condition33%1/3
not defined $fileno or $fileno < 0
l!l&&r!l&&!r
005
MC/DC0%0/2
not defined $fileno or $fileno < 0
not defined $fileno $fileno < 0
Truth table33%1/3
not(A) or B
A= not defined $filenoB= $fileno < 0
ABresult
1X1
011
000
22  
23 5 return _backend($fileno, 0, @_);
24 }
25  
26 9 ▶sub syswritev(*@) {
Subroutine syswritev: called CC=3 SCAR=11.0
Pod undocumented
27 9 my $fh = shift;
28  
29 9 my $fileno = fileno($fh);
30 9 ▶ croak("closed or invalid file-handle passed to syswritev") if !defined $fileno || $fileno < 0;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $fileno or $fileno < 0 1 8 9
Condition66%2/3
not defined $fileno or $fileno < 0
l!l&&r!l&&!r
108
MC/DC50%1/2
not defined $fileno or $fileno < 0
not defined $fileno $fileno < 0
Truth table66%2/3
not(A) or B
A= not defined $filenoB= $fileno < 0
ABresult
1X1
011
000
31  
32 8 return _backend($fileno, 1, @_);
33 }
34  
35 1 ▶sub IOV_MAX() {
Subroutine IOV_MAX: called CC=1 SCAR=0.0
Pod undocumented
36 1 return _get_iov_max();
37 }
38  
39 5 1;
40  
41  
42  
43 __END__
↑ Summary Vectored.xs »