Skip to content

Added documents into UI module (#282) #23

Added documents into UI module (#282)

Added documents into UI module (#282) #23

Triggered via push August 7, 2024 10:04
Status Success
Total duration 3m 10s
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 uses Node.js version which is deprecated 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 uses Node.js version which is deprecated 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 uses Node.js version which is deprecated 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/API/V1Parser.php#L53
Escaped Mutant for Mutator "Throw_": --- Original +++ New @@ @@ public static function parse(Uuid\UuidInterface $connector, string $topic, string $payload, bool $retained = false) : array { if (!V1Validator::validate($topic)) { - throw new Exceptions\ParseMessage('Provided topic is not valid'); + new Exceptions\ParseMessage('Provided topic is not valid'); } if (V1Validator::validateDeviceAttribute($topic)) { return array_merge(self::parseDeviceAttribute($connector, $topic, $payload), ['retained' => $retained]);
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/API/V1Parser.php#L155
Escaped Mutant for Mutator "UnwrapStrToLower": --- Original +++ New @@ @@ { preg_match(V1Validator::DEVICE_HW_INFO_REGEXP, $topic, $matches); [, $device, $hardware] = $matches; - return ['connector' => $connector, 'device' => $device, 'extension' => Types\ExtensionType::FASTYBIRD_HARDWARE->value, 'parameter' => $hardware, 'value' => Helpers\Payload::cleanName(strtolower($payload))]; + return ['connector' => $connector, 'device' => $device, 'extension' => Types\ExtensionType::FASTYBIRD_HARDWARE->value, 'parameter' => $hardware, 'value' => Helpers\Payload::cleanName($payload)]; } /** * @return array<string, Uuid\UuidInterface|string>
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/API/V1Parser.php#L176
Escaped Mutant for Mutator "UnwrapStrToLower": --- Original +++ New @@ @@ { preg_match(V1Validator::DEVICE_FW_INFO_REGEXP, $topic, $matches); [, $device, $firmware] = $matches; - return ['connector' => $connector, 'device' => $device, 'extension' => Types\ExtensionType::FASTYBIRD_FIRMWARE->value, 'parameter' => $firmware, 'value' => Helpers\Payload::cleanName(strtolower($payload))]; + return ['connector' => $connector, 'device' => $device, 'extension' => Types\ExtensionType::FASTYBIRD_FIRMWARE->value, 'parameter' => $firmware, 'value' => Helpers\Payload::cleanName($payload)]; } /** * @return array<string, Uuid\UuidInterface|string|array<int, array<string, string>>|null>
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/API/V1Validator.php#L70
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ public static function validate(string $topic) : bool { // Check if message is sent from broker - if (str_contains(trim($topic, FbMqtt\Constants::MQTT_TOPIC_DELIMITER), FbMqtt\Constants::MQTT_TOPIC_DELIMITER . 'set')) { + if (str_contains($topic, FbMqtt\Constants::MQTT_TOPIC_DELIMITER . 'set')) { return false; } // Check for valid convention prefix
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/API/V1Validator.php#L71
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ public static function validate(string $topic) : bool { // Check if message is sent from broker - if (str_contains(trim($topic, FbMqtt\Constants::MQTT_TOPIC_DELIMITER), FbMqtt\Constants::MQTT_TOPIC_DELIMITER . 'set')) { + if (str_contains(trim($topic, FbMqtt\Constants::MQTT_TOPIC_DELIMITER), 'set' . FbMqtt\Constants::MQTT_TOPIC_DELIMITER)) { return false; } // Check for valid convention prefix
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/API/V1Validator.php#L116
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ } return false; } - public static function validateConvention(string $topic) : bool + protected static function validateConvention(string $topic) : bool { return preg_match(self::CONVENTION_PREFIX_REGEXP, $topic) === 1; }
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Commands/Execute.php#L60
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public const NAME = 'fb:fb-mqtt-connector:execute'; public function __construct(private readonly DevicesModels\Configuration\Connectors\Repository $connectorsConfigurationRepository, private readonly Localization\Translator $translator, string|null $name = null) { - parent::__construct($name); + } /** * @throws Console\Exception\InvalidArgumentException
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Commands/Execute.php#L68
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('FB MQTT connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)])); + } /** * @throws Console\Exception\ExceptionInterface
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Commands/Execute.php#L72
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('FB MQTT connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)])); + $this->setName(self::NAME)->setDescription('FB MQTT connector service')->setDefinition(new Input\InputDefinition([])); } /** * @throws Console\Exception\ExceptionInterface
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2): src/Commands/Execute.php#L78
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('FB MQTT connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)])); + $this->setName(self::NAME)->setDescription('FB MQTT connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', false)])); } /** * @throws Console\Exception\ExceptionInterface
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
2.04 MB