Skip to content

add read only store #1097

add read only store

add read only store #1097

Triggered via pull request January 14, 2025 15:23
Status Failure
Total duration 3m 6s
Artifacts

mutation-tests-diff.yml

on: pull_request
Matrix: Mutation tests on diff
Fit to window
Zoom out
Zoom in

Annotations

1 error and 3 warnings
Mutation tests on diff (locked, 8.3, ubuntu-latest)
Process completed with exit code 1.
Mutation tests on diff (locked, 8.3, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Mutation tests on diff (locked, 8.3, ubuntu-latest): src/Store/ReadOnlyStore.php#L28
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ throw new InvalidArgumentException('store must not be a StreamStore. use StreamReadOnlyStore instead'); } } - public function load(Criteria|null $criteria = null, int|null $limit = null, int|null $offset = null, bool $backwards = false) : Stream + public function load(Criteria|null $criteria = null, int|null $limit = null, int|null $offset = null, bool $backwards = true) : Stream { return $this->store->load($criteria, $limit, $offset, $backwards); }
Mutation tests on diff (locked, 8.3, ubuntu-latest): src/Store/ReadOnlyStore.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ public function save(Message ...$messages) : void { foreach ($messages as $message) { - $this->logger?->info('tried to save message in read only store', ['message' => $message]); + $this->logger?->info('tried to save message in read only store', []); } throw new StoreIsReadOnly(); }