diff --git a/app/Legacy/V1/Resources/Models/PhotoResource.php b/app/Legacy/V1/Resources/Models/PhotoResource.php index a70e441efa6..8a947b4ee46 100644 --- a/app/Legacy/V1/Resources/Models/PhotoResource.php +++ b/app/Legacy/V1/Resources/Models/PhotoResource.php @@ -51,9 +51,11 @@ public function toArray($request) { /** @var SizeVariants|MissingValue $size_variants */ $size_variants = $this->whenLoaded('size_variants'); + // @codeCoverageIgnoreStart if ($size_variants instanceof MissingValue) { $size_variants = null; } + // @codeCoverageIgnoreEnd $downgrade = !Gate::check(PhotoPolicy::CAN_ACCESS_FULL_PHOTO, [Photo::class, $this->resource]) && !$this->resource->isVideo() && $size_variants?->hasMedium() === true; diff --git a/app/Services/Archives/Zip21Trait.php b/app/Services/Archives/Zip21Trait.php index 0df1ac55982..1cbce8d54e8 100644 --- a/app/Services/Archives/Zip21Trait.php +++ b/app/Services/Archives/Zip21Trait.php @@ -18,6 +18,13 @@ use Composer\Semver\VersionParser; use ZipStream\ZipStream; +/** + * This code is untestable as it is tightly coupled with the ZipStream version. + * Tests are run with ZipStream version 3.1+. + * This code has been tested manually by the developer. + * + * @codeCoverageIgnore + */ trait Zip21Trait { /** diff --git a/codecov.yml b/codecov.yml index d7a7bcf6ca8..5cd0279b44c 100644 --- a/codecov.yml +++ b/codecov.yml @@ -19,7 +19,7 @@ coverage: patch: off project: default: - target: 80% + target: 90% ignore: - "^app/Console/.*" - "^app/Exceptions/.*" @@ -32,7 +32,7 @@ ignore: - "^app/Notifications/.*" # Legacy shit - "^app/Legacy/Actions/Photo/.*" -- "^app/Livewire/.*" +- "^app/Legacy/Lang/.*" - "^app/View/.*" parsers: gcov: