-
Notifications
You must be signed in to change notification settings - Fork 805
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
Add tests for common/persistence/shardManager.go #5916
Add tests for common/persistence/shardManager.go #5916
Conversation
Pull Request Test Coverage Report for Build 018eee7a-c8d9-4021-b1e7-989fe51bd665Details
💛 - Coveralls |
Codecov Report
Additional details and impacted files
Continue to review full report in Codecov by Sentry.
|
@@ -0,0 +1,399 @@ | |||
// The MIT License (MIT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are in the process of standardizing file names with snake_case. We update as we touch. Please rename this file and corresponding code file
|
||
manager := NewShardManager(store) | ||
if test.serializer != nil { | ||
manager.(*shardManager).serializer = test.serializer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a better alternative pattern for this kind of overrides is to use WithX
options. Example
3b807b8
to
ac24b02
Compare
What changed?
Add tests for common/persistence/shardManager.go
Add mock for ShardStore
Rename shardManager.go to match snake_case convention
Why?
Increase test coverage
How did you test it?
Unit tests
Potential risks
Release notes
Documentation Changes