Skip to content

Commit

Permalink
Fix mutant (ignore code coverage differently) (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Apr 20, 2023
1 parent 56b83b2 commit d839224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ItemTreeTraversal/ItemTreeTraversalFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ public static function getItemTreeTraversal(
$arguments = [$database, $tableName, $childrenTableName];
$driver = $database->getDriverName();

// default - ignored due to a complexity of testing and preventing splitting of database argument.
// @codeCoverageIgnoreStart
return match ($driver) {
'sqlite' => new SqliteCteItemTreeTraversal(...$arguments),
'mysql' => self::getMysqlItemTreeTraversal($database, $tableName, $childrenTableName),
'pgsql' => new PostgresCteItemTreeTraversal(...$arguments),
'sqlsrv' => new MssqlCteItemTreeTraversal(...$arguments),
'oci' => new OracleCteItemTreeTraversal(...$arguments),
// Ignored due to a complexity of testing and preventing splitting of database argument.
// @codeCoverageIgnoreStart
default => throw new RuntimeException("$driver database driver is not supported."),
// @codeCoverageIgnoreEnd
};
// @codeCoverageIgnoreEnd
}

/**
Expand Down

0 comments on commit d839224

Please sign in to comment.