-
Notifications
You must be signed in to change notification settings - Fork 800
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 transfer_queue_processor.go #6483
base: master
Are you sure you want to change the base?
Add tests for transfer_queue_processor.go #6483
Conversation
@@ -39,40 +57,926 @@ import ( | |||
"github.com/uber/cadence/service/worker/archiver" | |||
) | |||
|
|||
func TestTransferQueueProcessor_RequireStartStop(t *testing.T) { | |||
type ( | |||
transferQueueProcessorSuite struct { |
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.
Please avoid introducing new suites. As far as I understand, we generally agree that suites are not very useful, and you can achieve the same with one function that will prepare the object and mocks.
goleak.VerifyNone could be switched to VerifyTestMain and put into TestMain of the package.
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.
Let's not introduce new suites in tests.
It should be fine for existing suites, but all new parts should be tested as individual tests with a table-test structure where suitable.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted filessee 44 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
What changed?
Added tests for transfer_queue_processor.go
Why?
Code coverage
How did you test it?
Unit tests
Potential risks
Release notes
Documentation Changes