SigGuard/sysread.pm

filter: Statementstmt 100% 5 / 5 Branchbran 62.5% 5 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod 0.0% 0 / 1 totaltotal 73.3% 11 / 15 CC 5 SCAR 16.8
CC
5
Cov
77%
sysread
5.4
CRAP 5.4
« SigGuard/send.pm ↑ Summary SigGuard/recv.pm »
1 package IO::SigGuard;
2  
3 sub sysread {
4 READ: {
5 697 ▶ $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=16.8
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 { redo READ if $! == 4 } 15 696 711
@_ == 3 ? : 711 0 711
@_ == 4 ? : 0 0 0
6 15 ▶ redo READ if $! == Errno::EINTR();
Branch: 1 branch
BranchTrueFalseTotal
if $! == 4 14 1 15
7 };
8 }
9  
10 697 return $result;
11 }
12  
13 2 1;
« SigGuard/send.pm ↑ Summary SigGuard/recv.pm »