mirror of
https://github.com/danog/process.git
synced 2024-11-30 04:39:04 +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\Deferred;
|
||||||
use Amp\Process\Internal\ProcessHandle;
|
use Amp\Process\Internal\ProcessHandle;
|
||||||
|
|
||||||
|
/** @internal */
|
||||||
final class Handle extends ProcessHandle {
|
final class Handle extends ProcessHandle {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->pidDeferred = new Deferred;
|
$this->pidDeferred = new Deferred;
|
||||||
|
@ -14,6 +14,7 @@ use Amp\Process\ProcessInputStream;
|
|||||||
use Amp\Process\ProcessOutputStream;
|
use Amp\Process\ProcessOutputStream;
|
||||||
use Amp\Promise;
|
use Amp\Promise;
|
||||||
|
|
||||||
|
/** @internal */
|
||||||
final class Runner implements ProcessRunner {
|
final class Runner implements ProcessRunner {
|
||||||
const FD_SPEC = [
|
const FD_SPEC = [
|
||||||
["pipe", "r"], // stdin
|
["pipe", "r"], // stdin
|
||||||
|
@ -5,6 +5,10 @@ namespace Amp\Process\Internal\Windows;
|
|||||||
use Amp\Deferred;
|
use Amp\Deferred;
|
||||||
use Amp\Process\Internal\ProcessHandle;
|
use Amp\Process\Internal\ProcessHandle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
* @codeCoverageIgnore Windows only.
|
||||||
|
*/
|
||||||
final class Handle extends ProcessHandle {
|
final class Handle extends ProcessHandle {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->joinDeferred = new Deferred;
|
$this->joinDeferred = new Deferred;
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
namespace Amp\Process\Internal\Windows;
|
namespace Amp\Process\Internal\Windows;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
* @codeCoverageIgnore Windows only.
|
||||||
|
*/
|
||||||
final class HandshakeStatus {
|
final class HandshakeStatus {
|
||||||
const SUCCESS = 0;
|
const SUCCESS = 0;
|
||||||
const SIGNAL_UNEXPECTED = 0x01;
|
const SIGNAL_UNEXPECTED = 0x01;
|
||||||
|
@ -4,6 +4,10 @@ namespace Amp\Process\Internal\Windows;
|
|||||||
|
|
||||||
use Amp\Struct;
|
use Amp\Struct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
* @codeCoverageIgnore Windows only.
|
||||||
|
*/
|
||||||
final class PendingSocketClient {
|
final class PendingSocketClient {
|
||||||
use Struct;
|
use Struct;
|
||||||
|
|
||||||
|
@ -13,6 +13,10 @@ use Amp\Process\ProcessOutputStream;
|
|||||||
use Amp\Promise;
|
use Amp\Promise;
|
||||||
use const Amp\Process\BIN_DIR;
|
use const Amp\Process\BIN_DIR;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
* @codeCoverageIgnore Windows only.
|
||||||
|
*/
|
||||||
final class Runner implements ProcessRunner {
|
final class Runner implements ProcessRunner {
|
||||||
const FD_SPEC = [
|
const FD_SPEC = [
|
||||||
["pipe", "r"], // stdin
|
["pipe", "r"], // stdin
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
namespace Amp\Process\Internal\Windows;
|
namespace Amp\Process\Internal\Windows;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
* @codeCoverageIgnore Windows only.
|
||||||
|
*/
|
||||||
final class SignalCode {
|
final class SignalCode {
|
||||||
const HANDSHAKE = 0x01;
|
const HANDSHAKE = 0x01;
|
||||||
const HANDSHAKE_ACK = 0x02;
|
const HANDSHAKE_ACK = 0x02;
|
||||||
|
@ -8,6 +8,10 @@ use Amp\Loop;
|
|||||||
use Amp\Process\Internal\ProcessStatus;
|
use Amp\Process\Internal\ProcessStatus;
|
||||||
use Amp\Process\ProcessException;
|
use Amp\Process\ProcessException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
* @codeCoverageIgnore Windows only.
|
||||||
|
*/
|
||||||
final class SocketConnector {
|
final class SocketConnector {
|
||||||
const SERVER_SOCKET_URI = 'tcp://127.0.0.1:0';
|
const SERVER_SOCKET_URI = 'tcp://127.0.0.1:0';
|
||||||
const SECURITY_TOKEN_SIZE = 16;
|
const SECURITY_TOKEN_SIZE = 16;
|
||||||
|
Loading…
Reference in New Issue
Block a user