Skip to content

Merge branch 'QA_5_2' #1260

Merge branch 'QA_5_2'

Merge branch 'QA_5_2' #1260

Triggered via push December 25, 2024 15:51
Status Failure
Total duration 6m 22s
Artifacts
Matrix: Infection
Fit to window
Zoom out
Zoom in

Annotations

1 error and 9 warnings
Infection (8.2, ubuntu-latest)
Process completed with exit code 1.
Infection (8.2, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Infection (8.2, ubuntu-latest): src/Display/Results.php#L418
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ // Statement is a "SELECT COUNT", a // "CHECK/ANALYZE/REPAIR/OPTIMIZE/CHECKSUM", an "EXPLAIN" one or // contains a "PROC ANALYSE" part - return $displayParts->with(['hasEditLink' => false, 'deleteLink' => DeleteLinkEnum::NO_DELETE, 'hasSortLink' => false, 'hasNavigationBar' => false, 'hasBookmarkForm' => true, 'hasTextButton' => $this->isMaintenance, 'hasPrintLink' => true]); + return $displayParts->with(['deleteLink' => DeleteLinkEnum::NO_DELETE, 'hasSortLink' => false, 'hasNavigationBar' => false, 'hasBookmarkForm' => true, 'hasTextButton' => $this->isMaintenance, 'hasPrintLink' => true]); } /** * Defines the parts to display for other statements (probably SELECT).
Infection (8.2, ubuntu-latest): src/Display/Results.php#L498
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ // 2. Updates the display parts if ($this->printView) { $displayParts = $this->setDisplayPartsForPrintView($displayParts); - } elseif ($this->isCount || $this->isAnalyse || $this->isMaintenance || $this->isExplain) { + } elseif ($this->isCount && $this->isAnalyse || $this->isMaintenance || $this->isExplain) { $displayParts = $this->setDisplayPartsForNonData($displayParts); } elseif ($this->isShow) { $displayParts = $this->setDisplayPartsForShow($displayParts);
Infection (8.2, ubuntu-latest): src/Display/Results.php#L498
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ // 2. Updates the display parts if ($this->printView) { $displayParts = $this->setDisplayPartsForPrintView($displayParts); - } elseif ($this->isCount || $this->isAnalyse || $this->isMaintenance || $this->isExplain) { + } elseif (($this->isCount || $this->isAnalyse) && $this->isMaintenance || $this->isExplain) { $displayParts = $this->setDisplayPartsForNonData($displayParts); } elseif ($this->isShow) { $displayParts = $this->setDisplayPartsForShow($displayParts);
Infection (8.2, ubuntu-latest): src/Display/Results.php#L498
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ // 2. Updates the display parts if ($this->printView) { $displayParts = $this->setDisplayPartsForPrintView($displayParts); - } elseif ($this->isCount || $this->isAnalyse || $this->isMaintenance || $this->isExplain) { + } elseif (($this->isCount || $this->isAnalyse || $this->isMaintenance) && $this->isExplain) { $displayParts = $this->setDisplayPartsForNonData($displayParts); } elseif ($this->isShow) { $displayParts = $this->setDisplayPartsForShow($displayParts);
Infection (8.2, ubuntu-latest): src/Display/Results.php#L519
Escaped Mutant for Mutator "GreaterThan": --- Original +++ New @@ @@ } // if for COUNT query, number of rows returned more than 1 // (may be being used GROUP BY) - if ($this->isCount && $this->numRows > 1) { + if ($this->isCount && $this->numRows >= 1) { $displayParts = $displayParts->with(['hasNavigationBar' => true, 'hasSortLink' => true]); } // 4. If navigation bar or sorting fields names URLs should be
Infection (8.2, ubuntu-latest): src/Display/Results.php#L519
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } // if for COUNT query, number of rows returned more than 1 // (may be being used GROUP BY) - if ($this->isCount && $this->numRows > 1) { + if ($this->isCount || $this->numRows > 1) { $displayParts = $displayParts->with(['hasNavigationBar' => true, 'hasSortLink' => true]); } // 4. If navigation bar or sorting fields names URLs should be
Infection (8.2, ubuntu-latest): src/Sql.php#L1338
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $hasUnique = $table !== null && $this->resultSetContainsUniqueKey($db, $table, $fieldsMeta); $editable = ($hasUnique || $this->config->settings['RowActionLinksWithoutUnique'] || $updatableView) && $justOneTable && !Utilities::isSystemSchema($db); $_SESSION['tmpval']['possible_as_geometry'] = $editable; - $displayParts = DisplayParts::fromArray(['hasEditLink' => true, 'deleteLink' => DeleteLinkEnum::DELETE_ROW, 'hasSortLink' => true, 'hasNavigationBar' => true, 'hasBookmarkForm' => true, 'hasTextButton' => false, 'hasPrintLink' => true]); + $displayParts = DisplayParts::fromArray(['deleteLink' => DeleteLinkEnum::DELETE_ROW, 'hasSortLink' => true, 'hasNavigationBar' => true, 'hasBookmarkForm' => true, 'hasTextButton' => false, 'hasPrintLink' => true]); if (!$editable) { $displayParts = DisplayParts::fromArray(['hasEditLink' => false, 'deleteLink' => DeleteLinkEnum::NO_DELETE, 'hasSortLink' => true, 'hasNavigationBar' => true, 'hasBookmarkForm' => true, 'hasTextButton' => true, 'hasPrintLink' => true]); }
Infection (8.2, ubuntu-latest): src/Sql.php#L1349
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $_SESSION['tmpval']['possible_as_geometry'] = $editable; $displayParts = DisplayParts::fromArray(['hasEditLink' => true, 'deleteLink' => DeleteLinkEnum::DELETE_ROW, 'hasSortLink' => true, 'hasNavigationBar' => true, 'hasBookmarkForm' => true, 'hasTextButton' => false, 'hasPrintLink' => true]); if (!$editable) { - $displayParts = DisplayParts::fromArray(['hasEditLink' => false, 'deleteLink' => DeleteLinkEnum::NO_DELETE, 'hasSortLink' => true, 'hasNavigationBar' => true, 'hasBookmarkForm' => true, 'hasTextButton' => true, 'hasPrintLink' => true]); + $displayParts = DisplayParts::fromArray(['deleteLink' => DeleteLinkEnum::NO_DELETE, 'hasSortLink' => true, 'hasNavigationBar' => true, 'hasBookmarkForm' => true, 'hasTextButton' => true, 'hasPrintLink' => true]); } if (isset($_POST['printview']) && $_POST['printview'] == '1') { $displayParts = DisplayParts::fromArray(['hasEditLink' => false, 'deleteLink' => DeleteLinkEnum::NO_DELETE, 'hasSortLink' => false, 'hasNavigationBar' => false, 'hasBookmarkForm' => false, 'hasTextButton' => false, 'hasPrintLink' => false]);