add catch up subscription engine #64
Annotations
1 error and 8 warnings
Infection
Process completed with exit code 1.
|
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/.
|
Infection:
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);
}
|
Infection:
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()) {
|
Infection:
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()) {
|
Infection:
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()) {
|
Infection:
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()) {
|
Infection:
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()) {
|
Infection:
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()) {
|
The logs for this run have expired and are no longer available.
Loading