Skip to content

Add ActiveRecord::transact() method #24

Add ActiveRecord::transact() method

Add ActiveRecord::transact() method #24

Triggered via pull request July 24, 2024 15:20
Status Success
Total duration 44s
Artifacts

testing.yml

on: pull_request
Matrix: arch-testing
Matrix: code-coverage
Matrix: mutation-testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation-testing (ubuntu-latest, 8.2, locked): src/Bridge/Spiral/Bootloader/ActiveRecordBootloader.php#L21
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { return [CycleOrmBootloader::class]; } - public function init(ContainerInterface $container) : void + protected function init(ContainerInterface $container) : void { Facade::setContainer($container); } }
mutation-testing (ubuntu-latest, 8.2, locked): src/Facade.php#L40
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ */ public static function getOrm() : ORMInterface { - return self::$orm ??= self::getFromContainer(ORMInterface::class); + return self::$orm = self::getFromContainer(ORMInterface::class); } public static function getEntityManager() : EntityManagerInterface {
mutation-testing (ubuntu-latest, 8.2, locked): src/Facade.php#L45
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ } public static function getEntityManager() : EntityManagerInterface { - return self::$entityManager ??= new EntityManager(self::getOrm()); + return self::$entityManager = new EntityManager(self::getOrm()); } public static function reset() : void {
mutation-testing (ubuntu-latest, 8.2, locked): src/Facade.php#L70
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ private static function getFromContainer(string $class) : object { // Check if container is set - self::$container === null and throw new ConfigurationException(\sprintf('Container has not been set. Please set the container first using %s method.', self::class . '::setContainer()')); + self::$container === null and throw new ConfigurationException(\sprintf('Container has not been set. Please set the container first using %s method.', '::setContainer()' . self::class)); // Pull service from container try { return self::$container->get($class);
mutation-testing (ubuntu-latest, 8.2, locked): src/Facade.php#L70
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ private static function getFromContainer(string $class) : object { // Check if container is set - self::$container === null and throw new ConfigurationException(\sprintf('Container has not been set. Please set the container first using %s method.', self::class . '::setContainer()')); + self::$container === null and throw new ConfigurationException(\sprintf('Container has not been set. Please set the container first using %s method.', '::setContainer()')); // Pull service from container try { return self::$container->get($class);
mutation-testing (ubuntu-latest, 8.2, locked): src/Facade.php#L70
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ private static function getFromContainer(string $class) : object { // Check if container is set - self::$container === null and throw new ConfigurationException(\sprintf('Container has not been set. Please set the container first using %s method.', self::class . '::setContainer()')); + self::$container === null and throw new ConfigurationException(\sprintf('Container has not been set. Please set the container first using %s method.', self::class)); // Pull service from container try { return self::$container->get($class);
mutation-testing (ubuntu-latest, 8.2, locked): src/Repository/ActiveRepository.php#L101
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ * @return Select<TEntity> * @mutation-free */ - public final function select() : Select + protected final function select() : Select { return clone $this->select; }
mutation-testing (ubuntu-latest, 8.2, locked): src/Repository/ActiveRepository.php#L103
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ */ public final function select() : Select { - return clone $this->select; + return $this->select; } /** * @param Select<TEntity> $select
mutation-testing (ubuntu-latest, 8.2, locked): src/Repository/ActiveRepository.php#L113
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ */ protected function with(Select $select) : static { - $repository = clone $this; + $repository = $this; $repository->select = $select; return $repository; }
mutation-testing (ubuntu-latest, 8.2, locked): src/Repository/ActiveRepository.php#L145
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ * * @return Select<T> */ - protected function initSelect(ORMInterface $orm, string $role) : Select + private function initSelect(ORMInterface $orm, string $role) : Select { return new Select($orm, $role); } }