gen mockery

This commit is contained in:
Jasmina Malicevic
2022-06-14 23:35:54 +02:00
parent 1f49985a1b
commit 301ee93704
16 changed files with 0 additions and 240 deletions
-15
View File
@@ -26,18 +26,3 @@ func (_m *Source) Now() time.Time {
return r0
}
type NewSourceT interface {
mock.TestingT
Cleanup(func())
}
// NewSource creates a new instance of Source. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewSource(t NewSourceT) *Source {
mock := &Source{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}