// cleanuper is used to check if TestHelper also has the `Cleanup` method. A
// common pattern is to pass in a `*testing.T` to
// `NewController(t TestReporter)`. In Go 1.14+, `*testing.T` has a cleanup
// method. This can be utilized to call `Finish()` so the caller of this library
// does not have to.
type cleanuper interface {
Cleanup(func())
}
I am using rapid with gomock and found some errors in my tests when I noticed that Finish was not being called on the mock controller after each Check
From gomock:
I am using rapid with gomock and found some errors in my tests when I noticed that
Finish
was not being called on the mock controller after each Check