github.com/koko1123/flow-go-1@v0.29.6/storage/mock/safe_beacon_keys.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 crypto "github.com/onflow/flow-go/crypto" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // SafeBeaconKeys is an autogenerated mock type for the SafeBeaconKeys type 11 type SafeBeaconKeys struct { 12 mock.Mock 13 } 14 15 // RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter 16 func (_m *SafeBeaconKeys) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error) { 17 ret := _m.Called(epochCounter) 18 19 var r0 crypto.PrivateKey 20 if rf, ok := ret.Get(0).(func(uint64) crypto.PrivateKey); ok { 21 r0 = rf(epochCounter) 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).(crypto.PrivateKey) 25 } 26 } 27 28 var r1 bool 29 if rf, ok := ret.Get(1).(func(uint64) bool); ok { 30 r1 = rf(epochCounter) 31 } else { 32 r1 = ret.Get(1).(bool) 33 } 34 35 var r2 error 36 if rf, ok := ret.Get(2).(func(uint64) error); ok { 37 r2 = rf(epochCounter) 38 } else { 39 r2 = ret.Error(2) 40 } 41 42 return r0, r1, r2 43 } 44 45 type mockConstructorTestingTNewSafeBeaconKeys interface { 46 mock.TestingT 47 Cleanup(func()) 48 } 49 50 // NewSafeBeaconKeys creates a new instance of SafeBeaconKeys. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 51 func NewSafeBeaconKeys(t mockConstructorTestingTNewSafeBeaconKeys) *SafeBeaconKeys { 52 mock := &SafeBeaconKeys{} 53 mock.Mock.Test(t) 54 55 t.Cleanup(func() { mock.AssertExpectations(t) }) 56 57 return mock 58 }