SigGuard/send.pm

filter: Statementstmt 100% 4 / 4 Branchbran 33.3% 2 / 6 Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 1 / 1 Podpod 0.0% 0 / 1 totaltotal 52.9% 9 / 17 CC 5 SCAR 19.2
CC
5
Cov
62%
send
6.8
CRAP 6.8
« SigGuard/syswrite.pm ↑ Summary SigGuard/select.pm »
1 package IO::SigGuard;
2  
3 194162 ▶sub send {
Subroutine send: called CC=5 SCAR=19.2
Pod undocumented
4 194162 ▶ $result = ( (@_ == 3) ? CORE::send( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::send( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! send(@_)" );
Branch: 2 branches
BranchTrueFalseTotal
@_ == 3 ? : 194162 0 194162
@_ == 4 ? : 0 0 0
5  
6 #EINTR means the file pointer is unchanged.
7 194162 ▶ goto &send if !defined $result && $! == Errno::EINTR();
Branch: 1 branch
BranchTrueFalseTotal
if not defined $result and $! == 4 0 194162 194162
Condition66%2/3
not defined $result and $! == 4
!ll&&!rl&&r
19416110
MC/DC0%0/2
not defined $result and $! == 4
not defined $result $! == 4
Truth table66%2/3
not(A) and B
A= not defined $resultB= $! == 4
ABresult
0X0
100
111
8  
9 194162 return $result;
10 }
11  
12 3 1;
« SigGuard/syswrite.pm ↑ Summary SigGuard/select.pm »