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

Coverage for persistence/client/bean #6404

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

Groxx
Copy link
Member

@Groxx Groxx commented Oct 24, 2024

Relatively simple but not-great-testability code.
Proper dependency injection would go a long way to helping.

While writing this I found one Close() not being called (again, dependency injection with a lifecycle would have taken care of this).
That's now fixed, though I assume it doesn't actually matter outside of synthetic environments like tests.

Relatively simple but not-great-testability code.
Proper dependency injection would go a long way to helping.

While writing this I found one `Close()` not being called (again, dependency injection with a lifecycle would have taken care of this).
That's now fixed, though I assume it doesn't actually matter outside of synthetic environments like tests.
Comment on lines +347 to +349
// mock-equality helper because `assert.Equal` considers all mocks of the same type to be equal,
// as they (generally) use the same mock controller and recorder, and it ignores different pointers
// due to using reflect.DeepEqual.
Copy link
Member Author

Choose a reason for hiding this comment

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

an awkward discovery.

they're reflect.DeepEqual despite being different instances.

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.92%. Comparing base (630daf9) to head (83182d8).
Report is 5 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
common/persistence/client/bean.go 98.37% <100.00%> (+98.37%) ⬆️

... and 17 files with indirect coverage changes


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 630daf9...83182d8. Read the comment docs.

@Groxx Groxx merged commit e83e45f into cadence-workflow:master Oct 24, 2024
20 checks passed
@Groxx Groxx deleted the bean_coverage branch October 24, 2024 04:04
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.

3 participants