Skip to content

Potentially use gomock if tests start getting too complex #22

@IAmJSD

Description

@IAmJSD

I believe this custom mock is starting to reach the point of complexity and custom logic where simply using gomock and explicitly mocking each function call and return values within each test case yields clearer and easer to understand tests.

I'm not gonna push for this to be changed to gomock right now, as it's already here and works well, but I think if we come back to it in the future and need to further expand it with more custom logic and state, a refactor to gomock would be a good idea.

Originally posted by @jimeh in #17 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions