SigGuard/send.pm

filter: Statementstmt 75.0% 3 / 4 Branchbran 16.6% 1 / 6 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 1 / 1 Podpod 0.0% 0 / 1 totaltotal 35.2% 6 / 17 SCAR 23.8
CC
5
Cov
38%
send
12.4
CRAP 10.8
« SigGuard/syswrite.pm ↑ Summary SigGuard/select.pm »
1 package IO::SigGuard;
2  
3 sub send {
4 189892 ▶ $result = ( (@_ == 3) ? CORE::send( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::send( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! send(@_)" ) || do {
Subroutine send: called CC=5 SCAR=25.2
Pod undocumented
Branch: 2 branches
BranchTrueFalseTotal
@_ == 3 ? : 189892 0 189892
@_ == 4 ? : 0 0 0
Condition33%1/3
(@_ == 3 ? CORE::send($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::send($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! send(@_)"))) || do { goto \&send if $! == 4 }
l!l&&r!l&&!r
18989200
MC/DC0%0/2
(@_ == 3 ? CORE::send($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::send($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! send(@_)"))) || do { goto \&send if $! == 4 }
(@_ == 3 ? CORE::send($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::send($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! send(@_)"))) do { goto \&send if $! == 4 }
Truth table33%1/3
A || B
A= (@_ == 3 ? CORE::send($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::send($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! send(@_)")))B= do { goto \&send if $! == 4 }
ABresult
1X1
011
000
5  
6 #EINTR means the file pointer is unchanged.
7 0 ▶ goto &send if $! == Errno::EINTR();
Branch: 1 branch
BranchTrueFalseTotal
if $! == 4 0 0 0
8 };
9  
10 189892 return $result;
11 }
12  
13 2 1;
« SigGuard/syswrite.pm ↑ Summary SigGuard/select.pm »