mirror of
https://github.com/danog/process.git
synced 2024-11-26 20:24:43 +01:00
Add coverage annotations
Windows only classes cause havoc with coverage numbers… open to suggestions on how to fix but at least now it won't look like we didn't even try testing. :-P
This commit is contained in:
parent
5d283ee7aa
commit
c818f508d3
@ -5,6 +5,7 @@ namespace Amp\Process\Internal\Posix;
|
||||
use Amp\Deferred;
|
||||
use Amp\Process\Internal\ProcessHandle;
|
||||
|
||||
/** @internal */
|
||||
final class Handle extends ProcessHandle {
|
||||
public function __construct() {
|
||||
$this->pidDeferred = new Deferred;
|
||||
|
@ -14,6 +14,7 @@ use Amp\Process\ProcessInputStream;
|
||||
use Amp\Process\ProcessOutputStream;
|
||||
use Amp\Promise;
|
||||
|
||||
/** @internal */
|
||||
final class Runner implements ProcessRunner {
|
||||
const FD_SPEC = [
|
||||
["pipe", "r"], // stdin
|
||||
|
@ -5,6 +5,10 @@ namespace Amp\Process\Internal\Windows;
|
||||
use Amp\Deferred;
|
||||
use Amp\Process\Internal\ProcessHandle;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @codeCoverageIgnore Windows only.
|
||||
*/
|
||||
final class Handle extends ProcessHandle {
|
||||
public function __construct() {
|
||||
$this->joinDeferred = new Deferred;
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
namespace Amp\Process\Internal\Windows;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @codeCoverageIgnore Windows only.
|
||||
*/
|
||||
final class HandshakeStatus {
|
||||
const SUCCESS = 0;
|
||||
const SIGNAL_UNEXPECTED = 0x01;
|
||||
|
@ -4,6 +4,10 @@ namespace Amp\Process\Internal\Windows;
|
||||
|
||||
use Amp\Struct;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @codeCoverageIgnore Windows only.
|
||||
*/
|
||||
final class PendingSocketClient {
|
||||
use Struct;
|
||||
|
||||
|
@ -13,6 +13,10 @@ use Amp\Process\ProcessOutputStream;
|
||||
use Amp\Promise;
|
||||
use const Amp\Process\BIN_DIR;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @codeCoverageIgnore Windows only.
|
||||
*/
|
||||
final class Runner implements ProcessRunner {
|
||||
const FD_SPEC = [
|
||||
["pipe", "r"], // stdin
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
namespace Amp\Process\Internal\Windows;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @codeCoverageIgnore Windows only.
|
||||
*/
|
||||
final class SignalCode {
|
||||
const HANDSHAKE = 0x01;
|
||||
const HANDSHAKE_ACK = 0x02;
|
||||
|
@ -8,6 +8,10 @@ use Amp\Loop;
|
||||
use Amp\Process\Internal\ProcessStatus;
|
||||
use Amp\Process\ProcessException;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @codeCoverageIgnore Windows only.
|
||||
*/
|
||||
final class SocketConnector {
|
||||
const SERVER_SOCKET_URI = 'tcp://127.0.0.1:0';
|
||||
const SECURITY_TOKEN_SIZE = 16;
|
||||
|
Loading…
Reference in New Issue
Block a user