Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(coverage): add coverage for boltdb and dynamo #2018

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

laurentiuNiculae
Copy link
Contributor

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@laurentiuNiculae laurentiuNiculae force-pushed the proto-coverage branch 3 times, most recently from a13dfd0 to d198918 Compare November 7, 2023 08:18
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Merging #2018 (1a12bf3) into main (7f52f58) will increase coverage by 1.80%.
The diff coverage is 98.59%.

@@            Coverage Diff             @@
##             main    #2018      +/-   ##
==========================================
+ Coverage   90.13%   91.93%   +1.80%     
==========================================
  Files         164      164              
  Lines       27651    27645       -6     
==========================================
+ Hits        24923    25416     +493     
+ Misses       2012     1652     -360     
+ Partials      716      577     -139     
Files Coverage Δ
errors/errors.go 100.00% <ø> (ø)
pkg/extensions/search/convert/metadb.go 96.83% <100.00%> (+1.06%) ⬆️
pkg/extensions/search/cve/trivy/scanner.go 96.86% <100.00%> (+6.81%) ⬆️
pkg/meta/common/common.go 100.00% <100.00%> (+4.59%) ⬆️
pkg/meta/convert/convert.go 97.92% <100.00%> (+5.69%) ⬆️
pkg/meta/dynamodb/dynamodb.go 89.92% <100.00%> (+9.58%) ⬆️
pkg/meta/types/types.go 100.00% <ø> (ø)
pkg/test/image-utils/images.go 92.21% <100.00%> (+1.01%) ⬆️
pkg/test/image-utils/multiarch.go 88.23% <100.00%> (ø)
pkg/meta/boltdb/boltdb.go 92.00% <93.33%> (+10.73%) ⬆️

... and 4 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

errors/errors.go Outdated
ErrLimitIsNegative = errors.New("pageturner: limit has negative value")
ErrOffsetIsNegative = errors.New("pageturner: offset has negative value")
ErrSortCriteriaNotSupported = errors.New("pageturner: the sort criteria is not supported")
ErrLimitIsNegative = errors.New("pagefinder: limit has negative value")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"pagination"

rchincha
rchincha previously approved these changes Nov 8, 2023
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@laurentiuNiculae laurentiuNiculae changed the title fix(cov): coverage boltdb+dynamo fix(coverage): add coverage for boltdb and dynamo Nov 8, 2023
Signed-off-by: Laurentiu Niculae <[email protected]>
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rchincha rchincha merged commit 2db6e86 into project-zot:main Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants