Skip to content

[viera-connector] Fixed viera device installation (#303) #31

[viera-connector] Fixed viera device installation (#303)

[viera-connector] Fixed viera device installation (#303) #31

Triggered via push August 27, 2024 11:03
Status Success
Total duration 2m 54s
Artifacts 1

tests.yaml

on: push
Matrix: PHP Tests
Matrix: PHP Tests With Code Coverage
Matrix: PHP Tests For Mutants
Fit to window
Zoom out
Zoom in

Annotations

14 warnings
PHP Tests (8.2, ubuntu-latest) / Code Tests (PHP 8.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Tests With Code Coverage (8.2, ubuntu-latest) / Code Coverage (PHP 8.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/DI/MetadataExtension.php#L89
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ /** * DOCUMENTS SERVICES */ - $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(false); + $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments([])->setAutowired(false); $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class);
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/DI/MetadataExtension.php#L92
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ /** * DOCUMENTS SERVICES */ - $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(false); + $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(true); $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class);
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/DI/MetadataExtension.php#L103
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ */ $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(false); $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); - $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); + $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => $configuration->documents->mapping])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class); $builder->addDefinition('document.mapping.classMetadataFactory', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\ClassMetadataFactory::class)->setArguments(['driver' => $mappingDriver, 'cache' => $metadataCache]); foreach ($configuration->documents->mapping as $namespace => $path) {
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/DI/MetadataExtension.php#L107
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ */ $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(false); $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); - $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); + $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(true); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class); $builder->addDefinition('document.mapping.classMetadataFactory', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\ClassMetadataFactory::class)->setArguments(['driver' => $mappingDriver, 'cache' => $metadataCache]); foreach ($configuration->documents->mapping as $namespace => $path) {
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/DI/MetadataExtension.php#L117
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class); - $builder->addDefinition('document.mapping.classMetadataFactory', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\ClassMetadataFactory::class)->setArguments(['driver' => $mappingDriver, 'cache' => $metadataCache]); + $builder->addDefinition('document.mapping.classMetadataFactory', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\ClassMetadataFactory::class)->setArguments(['cache' => $metadataCache]); foreach ($configuration->documents->mapping as $namespace => $path) { if (!is_dir($path)) { throw new Exceptions\InvalidState(sprintf('Given mapping path "%s" does not exist', $path));
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/DocumentFactory.php#L89
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ $metadata = $this->classMetadataFactory->getMetadataFor($documentClass); if (!$metadata->isInheritanceTypeNone()) { $discriminatorColumnSettings = $metadata->getDiscriminatorColumn(); - if ($discriminatorColumnSettings === null || !array_key_exists('name', $discriminatorColumnSettings) || !array_key_exists('type', $discriminatorColumnSettings)) { + if ($discriminatorColumnSettings === null && !array_key_exists('name', $discriminatorColumnSettings) || !array_key_exists('type', $discriminatorColumnSettings)) { throw new Exceptions\InvalidState(sprintf('Discriminator column configuration is missing on class: "%s"', $metadata->getName())); } $discriminatorColumn = $discriminatorColumnSettings['name'];
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/DocumentFactory.php#L89
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ $metadata = $this->classMetadataFactory->getMetadataFor($documentClass); if (!$metadata->isInheritanceTypeNone()) { $discriminatorColumnSettings = $metadata->getDiscriminatorColumn(); - if ($discriminatorColumnSettings === null || !array_key_exists('name', $discriminatorColumnSettings) || !array_key_exists('type', $discriminatorColumnSettings)) { + if (($discriminatorColumnSettings === null || !array_key_exists('name', $discriminatorColumnSettings)) && !array_key_exists('type', $discriminatorColumnSettings)) { throw new Exceptions\InvalidState(sprintf('Discriminator column configuration is missing on class: "%s"', $metadata->getName())); } $discriminatorColumn = $discriminatorColumnSettings['name'];
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/DocumentFactory.php#L109
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": --- Original +++ New @@ @@ throw new Exceptions\InvalidArgument(sprintf('Discriminator column: "%s" is missing in data', $discriminatorColumn)); } $type = $data[$discriminatorColumn]; - assert(is_string($type) || is_int($type)); + assert(!is_string($type) || !is_int($type)); $discriminatorMap = $metadata->getDiscriminatorMap(); if (!array_key_exists($type, $discriminatorMap)) { throw new Exceptions\InvalidArgument(sprintf('Missing discriminator map record for key: "%s" in class: "%s"', $type, $metadata->getName()));
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/DocumentFactory.php#L109
Escaped Mutant for Mutator "LogicalOrSingleSubExprNegation": --- Original +++ New @@ @@ throw new Exceptions\InvalidArgument(sprintf('Discriminator column: "%s" is missing in data', $discriminatorColumn)); } $type = $data[$discriminatorColumn]; - assert(is_string($type) || is_int($type)); + assert(is_string($type) || !is_int($type)); $discriminatorMap = $metadata->getDiscriminatorMap(); if (!array_key_exists($type, $discriminatorMap)) { throw new Exceptions\InvalidArgument(sprintf('Missing discriminator map record for key: "%s" in class: "%s"', $type, $metadata->getName()));
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/DocumentFactory.php#L121
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ if (!array_key_exists($type, $discriminatorMap)) { throw new Exceptions\InvalidArgument(sprintf('Missing discriminator map record for key: "%s" in class: "%s"', $type, $metadata->getName())); } - if ($metadata->isRootDocument() || $metadata->isAbstract()) { + if ($metadata->isRootDocument() && $metadata->isAbstract()) { $documentClass = $discriminatorMap[$type]; } elseif ($metadata->getDiscriminatorValue() !== $type) { throw new Exceptions\InvalidArgument(sprintf('Provided document class is different than discriminator value: "%s"', $metadata->getName()));
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "Logs - Mutations". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
701 KB