Add antireplay cache mock

This commit is contained in:
9seconds
2021-03-15 10:52:14 +03:00
parent 8eb5fed92f
commit 3dc263d6d7
3 changed files with 16 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
package testlib
import "github.com/stretchr/testify/mock"
type MtglibAntiReplayCacheMock struct {
mock.Mock
}
func (m *MtglibAntiReplayCacheMock) SeenBefore(data []byte) bool {
return m.Called(data).Bool(0)
}