go-sigma / sigma

OCI-Native artifact manager
https://docs.sigma.tosone.cn
Apache License 2.0
129 stars 10 forks source link

:white_check_mark: Add unit test for inmemory cache #270

Closed tosone closed 9 months ago

codecov[bot] commented 9 months ago

Codecov Report

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

Comparison is base (91018ba) 32.27% compared to head (90cc2d9) 32.12%.

Files Patch % Lines
pkg/configs/default.go 50.00% 2 Missing and 1 partial :warning:
pkg/modules/cacher/inmemory/inmemory.go 50.00% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #270 +/- ## ========================================== - Coverage 32.27% 32.12% -0.15% ========================================== Files 129 129 Lines 9011 8906 -105 ========================================== - Hits 2908 2861 -47 + Misses 5799 5745 -54 + Partials 304 300 -4 ``` | [Flag](https://app.codecov.io/gh/go-sigma/sigma/pull/270/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma) | Coverage Δ | | |---|---|---| | [unit-test-mysql](https://app.codecov.io/gh/go-sigma/sigma/pull/270/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma) | `32.12% <50.00%> (-0.15%)` | :arrow_down: | | [unit-test-postgresql](https://app.codecov.io/gh/go-sigma/sigma/pull/270/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma) | `32.12% <50.00%> (-0.15%)` | :arrow_down: | | [unit-test-sqlite3](https://app.codecov.io/gh/go-sigma/sigma/pull/270/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma) | `32.12% <50.00%> (-0.15%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma#carryforward-flags-in-the-pull-request-comment) to find out more.

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