Skip to content

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

@github-actions

Description

@github-actions

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions