Skip to content

feat: add automation, linting and improve DX #28

feat: add automation, linting and improve DX

feat: add automation, linting and improve DX #28

Triggered via pull request April 1, 2024 02:31
Status Failure
Total duration 6m 34s
Artifacts

ci.yml

on: pull_request
Matrix: code-coverage
Matrix: coding-standards
Matrix: dependency-analysis
Matrix: mutation-testing
Matrix: security-analysis
Matrix: static-analysis
Fit to window
Zoom out
Zoom in

Annotations

1 error and 11 warnings
coding-standards (ubuntu-latest, 8.1, locked)
Process completed with exit code 8.
code-coverage (ubuntu-latest, 8.1, locked)
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4.1.1/dist/codecov' failed with exit code 1
mutation-testing (ubuntu-latest, 8.1, locked): src/Database.php#L82
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ } public function withPrefix(string $prefix, bool $add = true) : DatabaseInterface { - $database = clone $this; + $database = $this; $add ? $database->prefix .= $prefix : ($database->prefix = $prefix); return $database; }
mutation-testing (ubuntu-latest, 8.1, locked): src/Database.php#L111
Escaped Mutant for Mutator "Ternary": --- Original +++ New @@ @@ $schemaHandler = $this->getDriver(self::READ)->getSchemaHandler(); $result = []; foreach ($schemaHandler->getTableNames($this->prefix) as $table) { - $table = str_contains($table, '.') ? str_replace('.' . $this->prefix, '.', $table) : substr($table, strlen($this->prefix)); + $table = str_contains($table, '.') ? substr($table, strlen($this->prefix)) : str_replace('.' . $this->prefix, '.', $table); $result[] = new Table($this, $table); } return $result;
mutation-testing (ubuntu-latest, 8.1, locked): src/Database.php#L113
Escaped Mutant for Mutator "UnwrapSubstr": --- Original +++ New @@ @@ $schemaHandler = $this->getDriver(self::READ)->getSchemaHandler(); $result = []; foreach ($schemaHandler->getTableNames($this->prefix) as $table) { - $table = str_contains($table, '.') ? str_replace('.' . $this->prefix, '.', $table) : substr($table, strlen($this->prefix)); + $table = str_contains($table, '.') ? str_replace('.' . $this->prefix, '.', $table) : $table; $result[] = new Table($this, $table); } return $result;
mutation-testing (ubuntu-latest, 8.1, locked): src/Database.php#L189
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->begin($isolationLevel); try { $result = $callback($this); - $this->commit(); + return $result; } catch (Throwable $e) { $this->rollback();
mutation-testing (ubuntu-latest, 8.1, locked): src/Driver/Compiler.php#L73
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ if ($tokens['offset'] !== null) { $params->push(new Parameter($tokens['offset'])); } - return '_' . ($tokens['limit'] === null) . '_' . ($tokens['offset'] === null); + return '_' . ($tokens['limit'] !== null) . '_' . ($tokens['offset'] === null); } /** * @psalm-return non-empty-string
mutation-testing (ubuntu-latest, 8.1, locked): src/Driver/Compiler.php#L73
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($tokens['offset'] !== null) { $params->push(new Parameter($tokens['offset'])); } - return '_' . ($tokens['limit'] === null) . '_' . ($tokens['offset'] === null); + return ($tokens['limit'] === null) . '_' . '_' . ($tokens['offset'] === null); } /** * @psalm-return non-empty-string
mutation-testing (ubuntu-latest, 8.1, locked): src/Driver/Compiler.php#L73
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($tokens['offset'] !== null) { $params->push(new Parameter($tokens['offset'])); } - return '_' . ($tokens['limit'] === null) . '_' . ($tokens['offset'] === null); + return ($tokens['limit'] === null) . '_' . ($tokens['offset'] === null); } /** * @psalm-return non-empty-string
mutation-testing (ubuntu-latest, 8.1, locked): src/Driver/Compiler.php#L73
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ if ($tokens['offset'] !== null) { $params->push(new Parameter($tokens['offset'])); } - return '_' . ($tokens['limit'] === null) . '_' . ($tokens['offset'] === null); + return '_' . ($tokens['limit'] === null) . '_' . ($tokens['offset'] !== null); } /** * @psalm-return non-empty-string
mutation-testing (ubuntu-latest, 8.1, locked): src/Driver/Compiler.php#L89
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ $tokens = $fragment->getTokens(); switch ($fragment->getType()) { case self::FRAGMENT: - foreach ($tokens['parameters'] as $param) { + foreach (array() as $param) { $params->push($param); } return $tokens['fragment'];
mutation-testing (ubuntu-latest, 8.1, locked): src/Driver/Compiler.php#L90
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ switch ($fragment->getType()) { case self::FRAGMENT: foreach ($tokens['parameters'] as $param) { - $params->push($param); + } return $tokens['fragment']; case self::EXPRESSION: