SigGuard/sysread.pm

filter: Statementstmt 100% 4 / 4 Branchbran 50.0% 3 / 6 Conditioncond 100% 3 / 3 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 1 / 1 Podpod 0.0% 0 / 1 totaltotal 76.4% 13 / 17 CC 5 SCAR 16.8
CC
5
Cov
77%
sysread
5.4
CRAP 5.4
« SigGuard/select.pm ↑ Summary SigGuard/recv.pm »
1 package IO::SigGuard;
2  
3 686 ▶sub sysread {
Subroutine sysread: called CC=5 SCAR=16.8
Pod undocumented
4 686 ▶ $result = ( (@_ == 3) ? CORE::sysread( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::sysread( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! sysread(@_)" );
Branch: 2 branches
BranchTrueFalseTotal
@_ == 3 ? : 686 0 686
@_ == 4 ? : 0 0 0
5  
6 686 ▶ goto &sysread if !defined $result && $! == Errno::EINTR();
Branch: 1 branch
BranchTrueFalseTotal
if not defined $result and $! == 4 5 681 686
Condition100%3/3
not defined $result and $! == 4
!ll&&!rl&&r
68015
MC/DC100%2/2
not defined $result and $! == 4
not defined $result $! == 4
Truth table100%3/3
not(A) and B
A= not defined $resultB= $! == 4
ABresult
0X0
100
111
7  
8 681 return $result;
9 }
10  
11 3 1;
« SigGuard/select.pm ↑ Summary SigGuard/recv.pm »