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

Not part of TestMain because a mock requires testing.T to be initialized. #276

Open
github-actions bot opened this issue Jan 12, 2023 · 0 comments
Open

Comments

@github-actions
Copy link

We are trying to only initialize one `testPersistenceModule` in all the tests, so when the utility module tests are no longer dependant on the persistence module explicitly, this can be improved.


// IMPROVE: Not part of `TestMain` because a mock requires `testing.T` to be initialized.
// We are trying to only initialize one `testPersistenceModule` in all the tests, so when the
// utility module tests are no longer dependant on the persistence module explicitly, this
// can be improved.
func mockBusInTestModules(t *testing.T) {
ctrl := gomock.NewController(t)


This issue was generated by todo-issue based on a IMPROVE comment in d552ec6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants