Skip to content

[general] Refactored constants + added missing constants (#301) #24

[general] Refactored constants + added missing constants (#301)

[general] Refactored constants + added missing constants (#301) #24

Triggered via push August 18, 2024 14:54
Status Success
Total duration 8m 2s
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/
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/
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/Documents/Widgets/Widget.php#L124
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { return $this->name; } - public function getDisplay() : Uuid\UuidInterface + protected function getDisplay() : Uuid\UuidInterface { return $this->display; }
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/Widgets/Widget.php#L132
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @return array<Uuid\UuidInterface> */ - public function getDataSources() : array + protected function getDataSources() : array { return $this->dataSources; }
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/Widgets/Widget.php#L140
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @return array<Uuid\UuidInterface> */ - public function getTabs() : array + protected function getTabs() : array { return $this->tabs; }
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/Widgets/Widget.php#L162
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ } public function toArray() : array { - return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)]; + return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => $this->getDataSources(), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)]; } public function getSource() : MetadataTypes\Sources\Source {
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/Widgets/Widget.php#L166
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ } public function toArray() : array { - return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)]; + return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => $this->getTabs(), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)]; } public function getSource() : MetadataTypes\Sources\Source {
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Documents/Widgets/Widget.php#L170
Escaped Mutant for Mutator "UnwrapArrayMap": --- Original +++ New @@ @@ } public function toArray() : array { - return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)]; + return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => $this->getGroups(), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)]; } public function getSource() : MetadataTypes\Sources\Source {
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Entities/Widgets/Displays/Button.php#L43
Escaped Mutant for Mutator "NullSafePropertyCall": --- Original +++ New @@ @@ */ public function toArray() : array { - return array_merge(parent::toArray(), ['icon' => $this->getIcon()?->value]); + return array_merge(parent::toArray(), ['icon' => $this->getIcon()->value]); } }
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Entities/Widgets/Displays/Parameters/TIcon.php#L43
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ public function getIcon() : Types\WidgetIcon|null { $value = $this->getParam('icon'); - return is_string($value) && $value !== '' ? Types\WidgetIcon::tryFrom($value) : null; + return is_string($value) && $value === '' ? Types\WidgetIcon::tryFrom($value) : null; } public function setIcon(Types\WidgetIcon|null $icon) : void {
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Entities/Widgets/Displays/Parameters/TIcon.php#L43
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ public function getIcon() : Types\WidgetIcon|null { $value = $this->getParam('icon'); - return is_string($value) && $value !== '' ? Types\WidgetIcon::tryFrom($value) : null; + return !is_string($value) && !($value !== '') ? Types\WidgetIcon::tryFrom($value) : null; } public function setIcon(Types\WidgetIcon|null $icon) : void {
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Models/Configuration/Dashboards/Repository.php#L91
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ return false; } $document = $this->documentFactory->create(Documents\Dashboards\Dashboard::class, $result[0]); - $dependencies = [NetteCaching\Cache::Tags => [$document->getId()->toString()]]; + $dependencies = []; return $document; }, [NetteCaching\Cache::Tags => [Types\ConfigurationType::DASHBOARDS->value]]); } catch (Throwable $ex) {

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
2.09 MB