add catch up subscription engine #64
mutation-tests-diff.yml
on: pull_request
Matrix: Mutation tests on diff
Annotations
1 error and 8 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)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Mutation tests on diff (locked, 8.3, ubuntu-latest):
src/Subscription/Engine/CatchUpSubscriptionEngine.php#L21
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public function __construct(private readonly SubscriptionEngine $parent, private readonly Store $store, private readonly int $limit = PHP_INT_MAX)
{
}
- public function setup(SubscriptionEngineCriteria|null $criteria = null, bool $skipBooting = false) : void
+ public function setup(SubscriptionEngineCriteria|null $criteria = null, bool $skipBooting = true) : void
{
$this->parent->setup($criteria, $skipBooting);
}
|
Mutation tests on diff (locked, 8.3, ubuntu-latest):
src/Subscription/Engine/CatchUpSubscriptionEngine.php#L28
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
public function boot(SubscriptionEngineCriteria|null $criteria = null, int|null $limit = null) : void
{
- for ($i = 0; $i < $this->limit; $i++) {
+ for ($i = -1; $i < $this->limit; $i++) {
$current = $this->store->count();
$this->parent->boot($criteria, $limit);
if ($current === $this->store->count()) {
|
Mutation tests on diff (locked, 8.3, ubuntu-latest):
src/Subscription/Engine/CatchUpSubscriptionEngine.php#L28
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
}
public function boot(SubscriptionEngineCriteria|null $criteria = null, int|null $limit = null) : void
{
- for ($i = 0; $i < $this->limit; $i++) {
+ for ($i = 0; $i <= $this->limit; $i++) {
$current = $this->store->count();
$this->parent->boot($criteria, $limit);
if ($current === $this->store->count()) {
|
Mutation tests on diff (locked, 8.3, ubuntu-latest):
src/Subscription/Engine/CatchUpSubscriptionEngine.php#L28
Escaped Mutant for Mutator "Increment":
--- Original
+++ New
@@ @@
}
public function boot(SubscriptionEngineCriteria|null $criteria = null, int|null $limit = null) : void
{
- for ($i = 0; $i < $this->limit; $i++) {
+ for ($i = 0; $i < $this->limit; $i--) {
$current = $this->store->count();
$this->parent->boot($criteria, $limit);
if ($current === $this->store->count()) {
|
Mutation tests on diff (locked, 8.3, ubuntu-latest):
src/Subscription/Engine/CatchUpSubscriptionEngine.php#L39
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
public function run(SubscriptionEngineCriteria|null $criteria = null, int|null $limit = null) : void
{
- for ($i = 0; $i < $this->limit; $i++) {
+ for ($i = -1; $i < $this->limit; $i++) {
$current = $this->store->count();
$this->parent->run($criteria, $limit);
if ($current === $this->store->count()) {
|
Mutation tests on diff (locked, 8.3, ubuntu-latest):
src/Subscription/Engine/CatchUpSubscriptionEngine.php#L39
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
}
public function run(SubscriptionEngineCriteria|null $criteria = null, int|null $limit = null) : void
{
- for ($i = 0; $i < $this->limit; $i++) {
+ for ($i = 0; $i <= $this->limit; $i++) {
$current = $this->store->count();
$this->parent->run($criteria, $limit);
if ($current === $this->store->count()) {
|
Mutation tests on diff (locked, 8.3, ubuntu-latest):
src/Subscription/Engine/CatchUpSubscriptionEngine.php#L39
Escaped Mutant for Mutator "Increment":
--- Original
+++ New
@@ @@
}
public function run(SubscriptionEngineCriteria|null $criteria = null, int|null $limit = null) : void
{
- for ($i = 0; $i < $this->limit; $i++) {
+ for ($i = 0; $i < $this->limit; $i--) {
$current = $this->store->count();
$this->parent->run($criteria, $limit);
if ($current === $this->store->count()) {
|