Skip to content

fix eloquent feature repository save method #84

fix eloquent feature repository save method

fix eloquent feature repository save method #84

Triggered via pull request October 16, 2023 17:29
Status Success
Total duration 43s
Artifacts

mutation-tests.yml

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

Annotations

34 warnings
Mutation tests (locked, 8.0, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L58
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $toggleConfig = new ToggleConfig($configItem); $this->app->bind(ToggleConfig::class, fn() => $toggleConfig); - $this->app->bind(StrategyFactory::class, Closure::fromCallable(new StrategyFactoryFactory())); + $this->app->bind(SegmentFactory::class, Closure::fromCallable(new SegmentFactoryFactory())); foreach ($toggleConfig->strategyTypes() as $strategyType) { $this->app->bind($strategyType['type'], $strategyType['factory_id']);
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L59
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $toggleConfig = new ToggleConfig($configItem); $this->app->bind(ToggleConfig::class, fn() => $toggleConfig); $this->app->bind(StrategyFactory::class, Closure::fromCallable(new StrategyFactoryFactory())); - $this->app->bind(SegmentFactory::class, Closure::fromCallable(new SegmentFactoryFactory())); + foreach ($toggleConfig->strategyTypes() as $strategyType) { $this->app->bind($strategyType['type'], $strategyType['factory_id']); }
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L86
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->bind(FeatureRepository::class, Closure::fromCallable(new FeatureRepositoryFactory())); $this->app->bind(FeatureFinder::class, Closure::fromCallable(new FeatureFinderFactory())); } - $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); + $this->enableSDK(); $this->enableAPI($toggleConfig); $this->enableDBAL();
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L91
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->bind(FeatureFinder::class, Closure::fromCallable(new FeatureFinderFactory())); } $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); - $this->enableSDK(); + $this->enableAPI($toggleConfig); $this->enableDBAL(); }
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L92
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); $this->enableSDK(); - $this->enableAPI($toggleConfig); + $this->enableDBAL(); } /**
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L93
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); $this->enableSDK(); $this->enableAPI($toggleConfig); - $this->enableDBAL(); + } /** * Bootstrap services.
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L103
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L104
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes([], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L105
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes(['/../config/pheature_flags.php' . __DIR__ => config_path('pheature_flags.php')], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.0, ubuntu-latest): src/ToggleProvider.php#L105
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes(['/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 7.4, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Mutation tests (locked, 8.1, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L58
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $toggleConfig = new ToggleConfig($configItem); $this->app->bind(ToggleConfig::class, fn() => $toggleConfig); - $this->app->bind(StrategyFactory::class, Closure::fromCallable(new StrategyFactoryFactory())); + $this->app->bind(SegmentFactory::class, Closure::fromCallable(new SegmentFactoryFactory())); foreach ($toggleConfig->strategyTypes() as $strategyType) { $this->app->bind($strategyType['type'], $strategyType['factory_id']);
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L59
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $toggleConfig = new ToggleConfig($configItem); $this->app->bind(ToggleConfig::class, fn() => $toggleConfig); $this->app->bind(StrategyFactory::class, Closure::fromCallable(new StrategyFactoryFactory())); - $this->app->bind(SegmentFactory::class, Closure::fromCallable(new SegmentFactoryFactory())); + foreach ($toggleConfig->strategyTypes() as $strategyType) { $this->app->bind($strategyType['type'], $strategyType['factory_id']); }
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L86
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->bind(FeatureRepository::class, Closure::fromCallable(new FeatureRepositoryFactory())); $this->app->bind(FeatureFinder::class, Closure::fromCallable(new FeatureFinderFactory())); } - $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); + $this->enableSDK(); $this->enableAPI($toggleConfig); $this->enableDBAL();
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L91
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->bind(FeatureFinder::class, Closure::fromCallable(new FeatureFinderFactory())); } $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); - $this->enableSDK(); + $this->enableAPI($toggleConfig); $this->enableDBAL(); }
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L92
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); $this->enableSDK(); - $this->enableAPI($toggleConfig); + $this->enableDBAL(); } /**
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L93
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); $this->enableSDK(); $this->enableAPI($toggleConfig); - $this->enableDBAL(); + } /** * Bootstrap services.
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L103
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L104
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes([], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L105
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes(['/../config/pheature_flags.php' . __DIR__ => config_path('pheature_flags.php')], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.1, ubuntu-latest): src/ToggleProvider.php#L105
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes(['/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.2, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L58
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $toggleConfig = new ToggleConfig($configItem); $this->app->bind(ToggleConfig::class, fn() => $toggleConfig); - $this->app->bind(StrategyFactory::class, Closure::fromCallable(new StrategyFactoryFactory())); + $this->app->bind(SegmentFactory::class, Closure::fromCallable(new SegmentFactoryFactory())); foreach ($toggleConfig->strategyTypes() as $strategyType) { $this->app->bind($strategyType['type'], $strategyType['factory_id']);
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L59
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $toggleConfig = new ToggleConfig($configItem); $this->app->bind(ToggleConfig::class, fn() => $toggleConfig); $this->app->bind(StrategyFactory::class, Closure::fromCallable(new StrategyFactoryFactory())); - $this->app->bind(SegmentFactory::class, Closure::fromCallable(new SegmentFactoryFactory())); + foreach ($toggleConfig->strategyTypes() as $strategyType) { $this->app->bind($strategyType['type'], $strategyType['factory_id']); }
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L86
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->bind(FeatureRepository::class, Closure::fromCallable(new FeatureRepositoryFactory())); $this->app->bind(FeatureFinder::class, Closure::fromCallable(new FeatureFinderFactory())); } - $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); + $this->enableSDK(); $this->enableAPI($toggleConfig); $this->enableDBAL();
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L91
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->bind(FeatureFinder::class, Closure::fromCallable(new FeatureFinderFactory())); } $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); - $this->enableSDK(); + $this->enableAPI($toggleConfig); $this->enableDBAL(); }
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L92
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); $this->enableSDK(); - $this->enableAPI($toggleConfig); + $this->enableDBAL(); } /**
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L93
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->app->extend(ServerRequestInterface::class, Closure::fromCallable(new RouteParameterAsPsr7RequestAttribute($this->app))); $this->enableSDK(); $this->enableAPI($toggleConfig); - $this->enableDBAL(); + } /** * Bootstrap services.
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L103
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L104
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes([], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L105
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes(['/../config/pheature_flags.php' . __DIR__ => config_path('pheature_flags.php')], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');
Mutation tests (locked, 8.2, ubuntu-latest): src/ToggleProvider.php#L105
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ */ public function boot() : void { - $this->publishes([__DIR__ . '/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); + $this->publishes(['/../config/pheature_flags.php' => config_path('pheature_flags.php')], 'config'); $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/pheature_flags.php');