SigGuard/syswrite.pm

filter: Statementstmt 100% 4 / 4 Branchbran 25.0% 2 / 8 Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 1 / 1 Podpod 0.0% 0 / 1 totaltotal 47.3% 9 / 19 CC 6 SCAR 23.5
CC
6
Cov
53%
syswrite
10.5
CRAP 10.5
↑ Summary SigGuard/send.pm »
1 package IO::SigGuard;
2  
3 675012 ▶sub syswrite {
Subroutine syswrite: called CC=6 SCAR=23.5
Pod undocumented
4 675012 ▶ $result = ( (@_ == 2) ? CORE::syswrite( $_[0], $_[1] ) : (@_ == 3) ? CORE::syswrite( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::syswrite( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! syswrite(@_)" );
Branch: 3 branches
BranchTrueFalseTotal
@_ == 2 ? : 675012 0 675012
@_ == 3 ? : 0 0 0
@_ == 4 ? : 0 0 0
5  
6 #EINTR means the file pointer is unchanged.
7 675012 ▶ goto &syswrite if !defined $result && $! == Errno::EINTR();
Branch: 1 branch
BranchTrueFalseTotal
if not defined $result and $! == 4 0 675012 675012
Condition66%2/3
not defined $result and $! == 4
!ll&&!rl&&r
67501110
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 675012 return $result;
10 }
11  
12 2 1;
↑ Summary SigGuard/send.pm »