oras-project / oras-go

ORAS Go library
https://oras.land
Apache License 2.0
170 stars 91 forks source link

fix: fix the potential panic error if there is no platform in the index or manifest list #695

Closed lizMSFT closed 6 months ago

lizMSFT commented 6 months ago

resolves #692

codecov[bot] commented 6 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (66ea3df) 75.88% compared to head (1b64aef) 75.87%.

:exclamation: Current head 1b64aef differs from pull request most recent head 9a15291. Consider uploading reports for the commit 9a15291 to get more accurate results

Files Patch % Lines
internal/platform/platform.go 50.00% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #695 +/- ## ========================================== - Coverage 75.88% 75.87% -0.01% ========================================== Files 59 59 Lines 5868 5874 +6 ========================================== + Hits 4453 4457 +4 - Misses 1038 1039 +1 - Partials 377 378 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.