add read only store #1097
mutation-tests-diff.yml
on: pull_request
Matrix: Mutation tests on diff
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();
}
|