Skip to content

wip

wip #16

Triggered via push July 28, 2024 23:47
Status Success
Total duration 2m 7s
Artifacts 1

ci.yaml

on: push
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
1s
Status check - CI
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 7 warnings
Tests (macos-latest, 8.3, true)
docker: command not found
Tests (windows-latest, 8.3, true)
Container operations are only supported on Linux runners
Test for mutants (ubuntu-latest, 8.3): src/Auditor/AutoIncrementNearLimitMysqlAuditor.php#L49
Escaped Mutant for Mutator "PublicVisibility": @@ @@ * AUTO_INCREMENT: int, * }> */ - public function getRecords(): array + protected function getRecords(): array { $threshold = $this->dbal->escapeInt($this->percentileThreshold); return $this->dbal->query(
Test for mutants (ubuntu-latest, 8.3): src/Auditor/InvalidDateMysqlAuditor.php#L22
Escaped Mutant for Mutator "Foreach_": @@ @@ $this->cleanup(); } $violations = []; - foreach ($records as $record) { + foreach ([] as $record) { $source = new ColumnViolationSource($record['TABLE_SCHEMA'], null, $record['TABLE_NAME'], $record['COLUMN_NAME']); $violations[] = new Violation(self::getKey(), 'Column ' . $source->toString() . ' contains invalid dates.', $source); }
Test for mutants (ubuntu-latest, 8.3): src/Auditor/InvalidDateMysqlAuditor.php#L39
Escaped Mutant for Mutator "ArrayOneItem": @@ @@ $source = new ColumnViolationSource($record['TABLE_SCHEMA'], null, $record['TABLE_NAME'], $record['COLUMN_NAME']); $violations[] = new Violation(self::getKey(), 'Column ' . $source->toString() . ' contains invalid dates.', $source); } - return $violations; + return count($violations) > 1 ? array_slice($violations, 0, 1, true) : $violations; } private function createProcedure(): void {
Test for mutants (ubuntu-latest, 8.3): src/Auditor/InvalidDateMysqlAuditor.php#L100
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } private function cleanup(): void { - $this->dbal->exec( - /** @lang MySQL */ - 'DROP PROCEDURE OrisaiDbAudit_FindInvalidDates;' - ); + $this->dbal->exec( /** @lang MySQL */ 'DROP TEMPORARY TABLE OrisaiDbAudit_invalid_dates;'
Test for mutants (ubuntu-latest, 8.3): src/Dbal/DibiAdapter.php#L21
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ public function query(string $sql): array { $result = $this->connection->nativeQuery($sql); - $result->setRowClass(null); + return $result->fetchAll(); } public function exec(string $sql): int
Test for mutants (ubuntu-latest, 8.3): src/Dbal/NextrasAdapter.php#L65
Escaped Mutant for Mutator "GreaterThanOrEqualTo": @@ @@ } public function escapeBool(bool $value): string { - if ($this->version >= 5) { + if ($this->version > 5) { return $this->connection->getPlatform()->formatBool($value); } if ($this->version >= 2) {
Test for mutants (ubuntu-latest, 8.3): src/Dbal/NextrasAdapter.php#L78
Escaped Mutant for Mutator "GreaterThanOrEqualTo": @@ @@ } public function escapeDateTime(DateTimeInterface $value): string { - if ($this->version >= 5) { + if ($this->version > 5) { return $this->connection->getPlatform()->formatDateTime($value); } if ($this->version >= 2) {

Artifacts

Produced during runtime
Name Size
Logs - Mutations
1.8 KB