Updating readmes (#208) #406
ci.yaml
on: push
Matrix: Code quality assurance
Matrix: Code static analysis
Matrix: Code linting
Matrix: Test for mutants
Matrix: Code tests
Matrix: Code tests with code coverage
Annotations
9 warnings
Test for mutants (8.2, ubuntu-latest):
src/Commands/WsServer.php#L61
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function __construct(private readonly WebSockets\Server\Configuration $configuration, private readonly WebSockets\Server\Server $server, private readonly EventLoop\LoopInterface $eventLoop, private readonly array $exchangeFactories = [], private readonly EventDispatcher\EventDispatcherInterface|null $dispatcher = null, private readonly Log\LoggerInterface $logger = new Log\NullLogger(), string|null $name = null)
{
- parent::__construct($name);
+
}
/**
* @throws Console\Exception\InvalidArgumentException
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/WsServer.php#L69
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- parent::configure();
+
$this->setName(self::NAME)->setDescription('WebSockets server service');
}
protected function execute(Input\InputInterface $input, Output\OutputInterface $output) : int
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/WsServer.php#L71
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
protected function configure() : void
{
parent::configure();
- $this->setName(self::NAME)->setDescription('WebSockets server service');
+
}
protected function execute(Input\InputInterface $input, Output\OutputInterface $output) : int
{
|
Test for mutants (8.2, ubuntu-latest):
src/DI/WsServerExtension.php#L63
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
public function getConfigSchema() : Schema\Schema
{
- return Schema\Expect::structure(['access' => Schema\Expect::structure(['keys' => Schema\Expect::string()->default(null), 'origins' => Schema\Expect::string()->default(null)])]);
+ return Schema\Expect::structure([]);
}
public function loadConfiguration() : void
{
|
Test for mutants (8.2, ubuntu-latest):
src/DI/WsServerExtension.php#L64
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
public function getConfigSchema() : Schema\Schema
{
- return Schema\Expect::structure(['access' => Schema\Expect::structure(['keys' => Schema\Expect::string()->default(null), 'origins' => Schema\Expect::string()->default(null)])]);
+ return Schema\Expect::structure(['access' => Schema\Expect::structure(['origins' => Schema\Expect::string()->default(null)])]);
}
public function loadConfiguration() : void
{
|
Test for mutants (8.2, ubuntu-latest):
src/DI/WsServerExtension.php#L79
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$builder = $this->getContainerBuilder();
$configuration = $this->getConfig();
assert($configuration instanceof stdClass);
- $builder->addDefinition($this->prefix('commands.server'), new DI\Definitions\ServiceDefinition())->setType(Commands\WsServer::class)->setArguments(['exchangeFactories' => $builder->findByType(ExchangeExchange\Factory::class)]);
+ $builder->addDefinition($this->prefix('commands.server'), new DI\Definitions\ServiceDefinition())->setType(Commands\WsServer::class)->setArguments([]);
$builder->addDefinition($this->prefix('subscribers.client'), new DI\Definitions\ServiceDefinition())->setType(Subscribers\Client::class)->setArgument('wsKeys', $configuration->access->keys)->setArgument('allowedOrigins', $configuration->access->origins);
}
/**
|
Test for mutants (8.2, ubuntu-latest):
src/DI/WsServerExtension.php#L95
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function beforeCompile() : void
{
- parent::beforeCompile();
+
$builder = $this->getContainerBuilder();
/**
* Events bridges
|
Test for mutants (8.2, ubuntu-latest):
src/DI/WsServerExtension.php#L120
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
assert(is_string($socketWrapperServiceName));
$socketWrapperService = $builder->getDefinition($socketWrapperServiceName);
assert($socketWrapperService instanceof DI\Definitions\ServiceDefinition);
- $socketWrapperService->addSetup('?->onClientConnected[] = function() {?->dispatch(new ?(...func_get_args()));}', ['@self', $dispatcher, new PhpGenerator\Literal(Events\ClientConnected::class)]);
+
$socketWrapperService->addSetup('?->onIncomingMessage[] = function() {?->dispatch(new ?(...func_get_args()));}', ['@self', $dispatcher, new PhpGenerator\Literal(Events\IncomingMessage::class)]);
}
}
|
Test for mutants (8.2, ubuntu-latest):
src/DI/WsServerExtension.php#L129
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$socketWrapperService = $builder->getDefinition($socketWrapperServiceName);
assert($socketWrapperService instanceof DI\Definitions\ServiceDefinition);
$socketWrapperService->addSetup('?->onClientConnected[] = function() {?->dispatch(new ?(...func_get_args()));}', ['@self', $dispatcher, new PhpGenerator\Literal(Events\ClientConnected::class)]);
- $socketWrapperService->addSetup('?->onIncomingMessage[] = function() {?->dispatch(new ?(...func_get_args()));}', ['@self', $dispatcher, new PhpGenerator\Literal(Events\IncomingMessage::class)]);
+
}
}
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
68.3 KB |
|