SigGuard/sysread.pm

filter: Statementstmt 100% 4 / 4 Branchbran 62.5% 5 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod 0.0% 0 / 1 totaltotal 71.4% 10 / 14 CC 5 SCAR 17.1
CC
5
Cov
75%
sysread
5.5
CRAP 5.5
« SigGuard/select.pm ↑ Summary SigGuard/recv.pm »
1 package IO::SigGuard;
2  
3 sub sysread {
4 764 ▶ $result = ( (@_ == 3) ? CORE::sysread( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::sysread( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! sysread(@_)" ) or do {
Subroutine sysread: called CC=5 SCAR=17.1
Pod undocumented
Branch: 3 branches
BranchTrueFalseTotal
$result = @_ == 3 ? CORE::sysread($_[0], $_[1], $_[2]) : (@_ == 4 ? CORE::sysread($_[0], $_[1], $_[2], $_[3]) : die("Wrong args count! sysread(@_)")) or do { goto \&sysread if $! == 4 } 4 760 764
@_ == 3 ? : 764 0 764
@_ == 4 ? : 0 0 0
5 4 ▶ goto &sysread if $! == Errno::EINTR();
Branch: 1 branch
BranchTrueFalseTotal
if $! == 4 3 1 4
6 };
7  
8 761 return $result;
9 }
10  
11 2 1;
« SigGuard/select.pm ↑ Summary SigGuard/recv.pm »