Skip to content

add Cover notation #3127

add Cover notation

add Cover notation #3127

Triggered via push January 18, 2025 19:16
Status Failure
Total duration 26m 44s
Artifacts
Matrix: Validate Project / Check composer dependencies with composer-dependency-analyser
Matrix: Validate Project / Check composer with composer-normalize
Matrix: Validate Project / Check with editorconfig-checker
Matrix: Validate Project / Lint PHP
Matrix: Validate Project / Validate markdown files
Matrix: Validate Project / Linting with overtrue/phplint
Matrix: Validate Project / Validate composer
Matrix: Validate Project / Validate yaml
Validate Project  /  Lint & Validate Status
0s
Validate Project / Lint & Validate Status
Matrix: Install Project / Install Node dependencies
Matrix: Install Project / Install PHP dependencies
Install Project  /  Install Status
0s
Install Project / Install Status
Matrix: Project Analysis / Run eslint
Matrix: Project Analysis / Check Coding Standards with PHP-CS-Fixer
Matrix: Project Analysis / Check Coding Standards with PHPCS
Matrix: Project Analysis / Run prettier
Matrix: Project Analysis / Checks with Rector
Matrix: Project Analysis / Static Code Analysis with PHPStan
Matrix: Project Analysis / Run stylelint
Project Analysis  /  Status Analytics
0s
Project Analysis / Status Analytics
Matrix: UnitTests / Code Coverage with PHPUnit
Matrix: UnitTests / UnitTests with PHPUnit
Matrix: UnitTests / UnitTests with stryker
Matrix: UnitTests / UnitTests with vitest
Matrix: Integration Tests with PHPUnit
UnitTests  /  finish-code-coverage
5s
UnitTests / finish-code-coverage
UnitTests  /  Unit & Integration Tests Status
0s
UnitTests / Unit & Integration Tests Status
Unit & Integration Tests Status
0s
Unit & Integration Tests Status
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
Integration Tests with PHPUnit (ubuntu-24.04, 8.3, lowest)
Process completed with exit code 1.
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/Detector.php#L521
Escaped Mutant for Mutator "FalseValue": @@ @@ } if (is_string($platformVersion)) { $derivatePosition = mb_strpos($platformVersion, ';'); - assert($derivatePosition === false || is_int($derivatePosition)); + assert($derivatePosition === true || is_int($derivatePosition)); if ($derivatePosition !== false) { // the platform contains information about a derivate of the platform $derivate = trim(mb_substr($platformVersion, $derivatePosition + 1));
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/Detector.php#L521
Escaped Mutant for Mutator "Identical": @@ @@ } if (is_string($platformVersion)) { $derivatePosition = mb_strpos($platformVersion, ';'); - assert($derivatePosition === false || is_int($derivatePosition)); + assert($derivatePosition !== false || is_int($derivatePosition)); if ($derivatePosition !== false) { // the platform contains information about a derivate of the platform $derivate = trim(mb_substr($platformVersion, $derivatePosition + 1));
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/Detector.php#L523
Escaped Mutant for Mutator "FalseValue": @@ @@ if (is_string($platformVersion)) { $derivatePosition = mb_strpos($platformVersion, ';'); assert($derivatePosition === false || is_int($derivatePosition)); - if ($derivatePosition !== false) { + if ($derivatePosition !== true) { // the platform contains information about a derivate of the platform $derivate = trim(mb_substr($platformVersion, $derivatePosition + 1)); $platformVersion = null;
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/Detector.php#L558
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $this->logger->info($e); } } - if (!$platformVersion instanceof VersionInterface) { + if (!true) { $platformVersion = null; } return new Os(name: null, marketingName: null, manufacturer: new Company(type: 'unknown', name: null, brandname: null), version: $platformVersion ?? new NullVersion());
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/DetectorFactory.php#L72
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ $serializableStrategy = new SerializableStrategy(new Json()); $companyLoader = $companyLoaderFactory($serializableStrategy); try { - $platformLoader = new PlatformLoader(logger: $this->logger, initData: new Data\Os(strategy: new StrategyChain([new CollectionStrategy(new ArraySerializableHydrator(), DataOs::class), $serializableStrategy])), companyLoader: $companyLoader, versionBuilder: new VersionBuilder()); + $platformLoader = new PlatformLoader(logger: $this->logger, initData: new Data\Os(strategy: new StrategyChain([$serializableStrategy])), companyLoader: $companyLoader, versionBuilder: new VersionBuilder()); } catch (InvalidArgumentException $e) { throw new RuntimeException($e->getMessage(), $e->getCode(), $e); }
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/DetectorFactory.php#L104
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ $deviceParserFactory = new DeviceParserFactory(logger: $this->logger); $deviceParser = $deviceParserFactory(); try { - $engineLoader = new EngineLoader(logger: $this->logger, initData: new Data\Engine(strategy: new StrategyChain([new CollectionStrategy(new ArraySerializableHydrator(), DataEngine::class), $serializableStrategy])), companyLoader: $companyLoader, versionBuilder: new VersionBuilder()); + $engineLoader = new EngineLoader(logger: $this->logger, initData: new Data\Engine(strategy: new StrategyChain([$serializableStrategy])), companyLoader: $companyLoader, versionBuilder: new VersionBuilder()); } catch (InvalidArgumentException $e) { throw new RuntimeException($e->getMessage(), $e->getCode(), $e); }
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/DetectorFactory.php#L128
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ $engineParserFactory = new EngineParserFactory(logger: $this->logger); $engineParser = $engineParserFactory(); try { - $browserLoader = new BrowserLoader(logger: $this->logger, initData: new Data\Client(strategy: new StrategyChain([new CollectionStrategy(new ArraySerializableHydrator(), DataClient::class), $serializableStrategy])), companyLoader: $companyLoader, versionBuilder: new VersionBuilder()); + $browserLoader = new BrowserLoader(logger: $this->logger, initData: new Data\Client(strategy: new StrategyChain([$serializableStrategy])), companyLoader: $companyLoader, versionBuilder: new VersionBuilder()); } catch (InvalidArgumentException $e) { throw new RuntimeException($e->getMessage(), $e->getCode(), $e); }
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/Loader/BrowserLoader.php#L48
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ public function load(string $key, string $useragent = ''): ClientDataInterface { try { - $this->initData->init(); + } catch (RuntimeException $e) { throw new NotFoundException('the browser with key "' . $key . '" was not found', 0, $e); }
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/Loader/CompanyLoader.php#L34
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ public function load(string $key): Company { try { - $this->initData->init(); + } catch (RuntimeException $e) { throw new NotFoundException('the company with key "' . $key . '" was not found', 0, $e); }
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest): src/Loader/CompanyLoaderFactory.php#L38
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ { if ($this->loader === null) { try { - $this->loader = new CompanyLoader(initData: new Data\Company(strategy: new StrategyChain([new CollectionStrategy(new ArraySerializableHydrator(), DataCompany::class), $strategy]))); + $this->loader = new CompanyLoader(initData: new Data\Company(strategy: new StrategyChain([$strategy]))); } catch (InvalidArgumentException $e) { throw new RuntimeException($e->getMessage(), $e->getCode(), $e); }