| blib/lib/IO/SigGuard/send.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| statement | 3 | 3 | 100.0 | 
| branch | 2 | 6 | 33.3 | 
| condition | 2 | 3 | 66.6 | 
| subroutine | 1 | 1 | 100.0 | 
| pod | 0 | 1 | 0.0 | 
| total | 8 | 14 | 57.1 | 
| line | stmt | bran | cond | sub | pod | time | code | 
|---|---|---|---|---|---|---|---|
| 1 | package IO::SigGuard; | ||||||
| 2 | |||||||
| 3 | sub send { | ||||||
| 4 | 189266 | 0 | 189266 | 0 | 6293233 | $result = ( (@_ == 3) ? CORE::send( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::send( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! send(@_)" ); | |
| 50 | |||||||
| 5 | |||||||
| 6 | #EINTR means the file pointer is unchanged. | ||||||
| 7 | 189266 | 50 | 66 | 576773 | goto &send if !defined $result && $! == Errno::EINTR(); | ||
| 8 | |||||||
| 9 | 189266 | 399843 | return $result; | ||||
| 10 | } | ||||||
| 11 | |||||||
| 12 | 1; |