mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-06 16:17:11 +00:00
abci: application type should take contexts (#8388)
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
package mocks
|
||||
|
||||
import (
|
||||
time "time"
|
||||
testing "testing"
|
||||
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
|
||||
time "time"
|
||||
)
|
||||
|
||||
// Source is an autogenerated mock type for the Source type
|
||||
@@ -26,3 +28,12 @@ func (_m *Source) Now() time.Time {
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
// NewSource creates a new instance of Source. It also registers a cleanup function to assert the mocks expectations.
|
||||
func NewSource(t testing.TB) *Source {
|
||||
mock := &Source{}
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user