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

Write tests for resource impl #6452

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

taylanisikdemir
Copy link
Contributor

What changed?
Adding unit tests for resource impl.

Side note: Since this is a huge object with too many dependencies, figuring out the correct mocks was tricky. We should split this in the near future for better readability and ease of dependency management.

Why?
Improve coverage.

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@a569e5b). Learn more about missing BASE report.
Report is 9 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
common/persistence/client/bean.go 98.37% <100.00%> (ø)
common/resource/resource_impl.go 86.92% <100.00%> (ø)
common/rpc/peer_chooser.go 81.81% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a569e5b...33a4488. Read the comment docs.

@taylanisikdemir taylanisikdemir merged commit e170bd0 into uber:master Oct 31, 2024
20 checks passed
@taylanisikdemir taylanisikdemir deleted the taylan/resource_test branch October 31, 2024 15:34
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