unit tests for shutdown and filesize functions #221
Annotations
4 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
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/
|
Run composer infection:
Classes/Utility/TimingUtility.php#L44
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
}
public static function getInstance() : TimingUtility
{
- return static::$instance ??= GeneralUtility::makeInstance(TimingUtility::class, new RegisterShutdownFunction(), new ConfigService());
+ return static::$instance = GeneralUtility::makeInstance(TimingUtility::class, new RegisterShutdownFunction(), new ConfigService());
}
/** @var StopWatch[] */
private array $order = [];
|
Run composer infection:
Classes/Utility/TimingUtility.php#L133
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
if (!$this->shouldTrack()) {
return $result->response;
}
- $this->alreadyShutdown = true;
+ $this->alreadyShutdown = false;
foreach (array_reverse($this->order) as $stopWatch) {
$stopWatch->stopIfNot();
}
|
Loading