Skip to content

Bump actions/upload-artifact from 4.3.4 to 4.4.0 (#232) #31

Bump actions/upload-artifact from 4.3.4 to 4.4.0 (#232)

Bump actions/upload-artifact from 4.3.4 to 4.4.0 (#232) #31

Triggered via push October 2, 2024 20:26
Status Success
Total duration 1m 52s
Artifacts

infection.yml

on: push
0️⃣ Mutation Testing
1m 43s
0️⃣ Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
0️⃣ Mutation Testing: src/CachingStrategy/AssetCache.php#L46
Escaped Mutant for Mutator "BitwiseOr": @@ @@ { $this->workbox = $serviceWorker->workbox; $this->assetPublicPrefix = rtrim($publicAssetsPathResolver->resolvePublicPath(''), '/'); - $options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR; + $options = JSON_UNESCAPED_SLASHES & JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR; if ($debug === true) { $options |= JSON_PRETTY_PRINT; }
0️⃣ Mutation Testing: src/CachingStrategy/AssetCache.php#L47
Escaped Mutant for Mutator "Identical": @@ @@ $this->workbox = $serviceWorker->workbox; $this->assetPublicPrefix = rtrim($publicAssetsPathResolver->resolvePublicPath(''), '/'); $options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR; - if ($debug === true) { + if ($debug !== true) { $options |= JSON_PRETTY_PRINT; } $this->jsonOptions = $options;
0️⃣ Mutation Testing: src/CachingStrategy/AssetCache.php#L58
Escaped Mutant for Mutator "ArrayItem": @@ @@ public function getCacheStrategies(): array { $this->logger->debug('Getting cache strategies for assets'); - $urls = json_decode($this->serializer->serialize($this->getAssets(), 'json', [JsonEncode::OPTIONS => $this->jsonOptions]), true); + $urls = json_decode($this->serializer->serialize($this->getAssets(), 'json', [JsonEncode::OPTIONS > $this->jsonOptions]), true); $strategy = WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->assetCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, sprintf("({url}) => url.pathname.startsWith('%s')", $this->assetPublicPrefix))->withName($this->workbox->assetCache->cacheName)->withPlugin(ExpirationPlugin::create(count($this->getAssets()) * 2, $this->workbox->assetCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365)); if (count($urls) > 0) { $strategy = $strategy->withPreloadUrl(...$urls);
0️⃣ Mutation Testing: src/CachingStrategy/AssetCache.php#L62
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ { $this->logger->debug('Getting cache strategies for assets'); $urls = json_decode($this->serializer->serialize($this->getAssets(), 'json', [JsonEncode::OPTIONS => $this->jsonOptions]), true); - $strategy = WorkboxCacheStrategy::create($this->workbox->enabled && $this->workbox->assetCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, sprintf("({url}) => url.pathname.startsWith('%s')", $this->assetPublicPrefix))->withName($this->workbox->assetCache->cacheName)->withPlugin(ExpirationPlugin::create(count($this->getAssets()) * 2, $this->workbox->assetCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365)); + $strategy = WorkboxCacheStrategy::create(!$this->workbox->enabled && !$this->workbox->assetCache->enabled, true, CacheStrategyInterface::STRATEGY_CACHE_FIRST, sprintf("({url}) => url.pathname.startsWith('%s')", $this->assetPublicPrefix))->withName($this->workbox->assetCache->cacheName)->withPlugin(ExpirationPlugin::create(count($this->getAssets()) * 2, $this->workbox->assetCache->maxAgeInSeconds() ?? 60 * 60 * 24 * 365)); if (count($urls) > 0) { $strategy = $strategy->withPreloadUrl(...$urls); }
0️⃣ Mutation Testing: src/CachingStrategy/ResourceCaches.php#L81
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": @@ @@ if ($resourceCache->rangeRequests === true && $resourceCache->strategy !== CacheStrategyInterface::STRATEGY_NETWORK_ONLY) { $plugins[] = RangeRequestsPlugin::create(); } - if ($resourceCache->maxEntries !== null || $resourceCache->maxAgeInSeconds() !== null) { + if (!($resourceCache->maxEntries !== null) || !($resourceCache->maxAgeInSeconds() !== null)) { $plugins[] = ExpirationPlugin::create($resourceCache->maxEntries, $resourceCache->maxAgeInSeconds()); } $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, true, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions(['networkTimeoutSeconds' => $resourceCache->networkTimeout]);
0️⃣ Mutation Testing: src/CachingStrategy/ResourceCaches.php#L81
Escaped Mutant for Mutator "LogicalOrNegation": @@ @@ if ($resourceCache->rangeRequests === true && $resourceCache->strategy !== CacheStrategyInterface::STRATEGY_NETWORK_ONLY) { $plugins[] = RangeRequestsPlugin::create(); } - if ($resourceCache->maxEntries !== null || $resourceCache->maxAgeInSeconds() !== null) { + if (!($resourceCache->maxEntries !== null || $resourceCache->maxAgeInSeconds() !== null)) { $plugins[] = ExpirationPlugin::create($resourceCache->maxEntries, $resourceCache->maxAgeInSeconds()); } $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, true, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions(['networkTimeoutSeconds' => $resourceCache->networkTimeout]);
0️⃣ Mutation Testing: src/CachingStrategy/ResourceCaches.php#L87
Escaped Mutant for Mutator "TrueValue": @@ @@ if ($resourceCache->maxEntries !== null || $resourceCache->maxAgeInSeconds() !== null) { $plugins[] = ExpirationPlugin::create($resourceCache->maxEntries, $resourceCache->maxAgeInSeconds()); } - $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, true, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions(['networkTimeoutSeconds' => $resourceCache->networkTimeout]); + $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, false, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions(['networkTimeoutSeconds' => $resourceCache->networkTimeout]); if (count($urls) > 0) { $strategy = $strategy->withPreloadUrl(...$urls); }
0️⃣ Mutation Testing: src/CachingStrategy/ResourceCaches.php#L93
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ if ($resourceCache->maxEntries !== null || $resourceCache->maxAgeInSeconds() !== null) { $plugins[] = ExpirationPlugin::create($resourceCache->maxEntries, $resourceCache->maxAgeInSeconds()); } - $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, true, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions(['networkTimeoutSeconds' => $resourceCache->networkTimeout]); + $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, true, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions([]); if (count($urls) > 0) { $strategy = $strategy->withPreloadUrl(...$urls); }
0️⃣ Mutation Testing: src/CachingStrategy/ResourceCaches.php#L94
Escaped Mutant for Mutator "ArrayItem": @@ @@ if ($resourceCache->maxEntries !== null || $resourceCache->maxAgeInSeconds() !== null) { $plugins[] = ExpirationPlugin::create($resourceCache->maxEntries, $resourceCache->maxAgeInSeconds()); } - $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, true, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions(['networkTimeoutSeconds' => $resourceCache->networkTimeout]); + $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, true, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions(['networkTimeoutSeconds' > $resourceCache->networkTimeout]); if (count($urls) > 0) { $strategy = $strategy->withPreloadUrl(...$urls); }
0️⃣ Mutation Testing: src/CachingStrategy/ResourceCaches.php#L96
Escaped Mutant for Mutator "GreaterThanNegotiation": @@ @@ $plugins[] = ExpirationPlugin::create($resourceCache->maxEntries, $resourceCache->maxAgeInSeconds()); } $strategy = WorkboxCacheStrategy::create($this->workbox->enabled, true, $resourceCache->strategy, $this->prepareMatchCallback($resourceCache->matchCallback))->withName($cacheName)->withPlugin(...$plugins)->withOptions(['networkTimeoutSeconds' => $resourceCache->networkTimeout]); - if (count($urls) > 0) { + if (count($urls) <= 0) { $strategy = $strategy->withPreloadUrl(...$urls); } $strategies[] = $strategy;