Skip to content

Fix issues in test files found by SA tools #570

Fix issues in test files found by SA tools

Fix issues in test files found by SA tools #570

Triggered via pull request January 23, 2024 18:39
Status Success
Total duration 41s
Artifacts

mutation-tests.yml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
Mutation tests with PHP 8.1: src/Components/JoinKeyword.php#L90
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } public function build() : string { - return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') . (!empty($this->using) ? ' USING ' . $this->using->build() : ''); + return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->using) ? ' USING ' . $this->using->build() : '') . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : ''); } public function __toString() : string {
Mutation tests with PHP 8.1: src/Components/JoinKeyword.php#L90
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } public function build() : string { - return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') . (!empty($this->using) ? ' USING ' . $this->using->build() : ''); + return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : ''); } public function __toString() : string {
Mutation tests with PHP 8.1: src/Components/JoinKeyword.php#L92
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } public function build() : string { - return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') . (!empty($this->using) ? ' USING ' . $this->using->build() : ''); + return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') . (!empty($this->using) ? $this->using->build() . ' USING ' : ''); } public function __toString() : string {
Mutation tests with PHP 8.1: src/Components/JoinKeyword.php#L92
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } public function build() : string { - return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') . (!empty($this->using) ? ' USING ' . $this->using->build() : ''); + return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') . (!empty($this->using) ? $this->using->build() : ''); } public function __toString() : string {
Mutation tests with PHP 8.1: src/Components/JoinKeyword.php#L92
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } public function build() : string { - return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') . (!empty($this->using) ? ' USING ' . $this->using->build() : ''); + return array_search($this->type, self::JOINS) . ' ' . $this->expr . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '') . (!empty($this->using) ? ' USING ' : ''); } public function __toString() : string {
Mutation tests with PHP 8.1: src/Components/Key.php#L90
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ foreach ($this->columns as $column) { $tmp = ''; if (isset($column['name'])) { - $tmp .= Context::escape($column['name']); + $tmp = Context::escape($column['name']); } if (isset($column['length'])) { $tmp .= '(' . $column['length'] . ')';
Mutation tests with PHP 8.1
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/