github.com/koko1123/flow-go-1@v0.29.6/module/mock/local.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 flow "github.com/koko1123/flow-go-1/model/flow" 8 9 hash "github.com/onflow/flow-go/crypto/hash" 10 11 mock "github.com/stretchr/testify/mock" 12 ) 13 14 // Local is an autogenerated mock type for the Local type 15 type Local struct { 16 mock.Mock 17 } 18 19 // Address provides a mock function with given fields: 20 func (_m *Local) Address() string { 21 ret := _m.Called() 22 23 var r0 string 24 if rf, ok := ret.Get(0).(func() string); ok { 25 r0 = rf() 26 } else { 27 r0 = ret.Get(0).(string) 28 } 29 30 return r0 31 } 32 33 // NodeID provides a mock function with given fields: 34 func (_m *Local) NodeID() flow.Identifier { 35 ret := _m.Called() 36 37 var r0 flow.Identifier 38 if rf, ok := ret.Get(0).(func() flow.Identifier); ok { 39 r0 = rf() 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(flow.Identifier) 43 } 44 } 45 46 return r0 47 } 48 49 // NotMeFilter provides a mock function with given fields: 50 func (_m *Local) NotMeFilter() flow.IdentityFilter { 51 ret := _m.Called() 52 53 var r0 flow.IdentityFilter 54 if rf, ok := ret.Get(0).(func() flow.IdentityFilter); ok { 55 r0 = rf() 56 } else { 57 if ret.Get(0) != nil { 58 r0 = ret.Get(0).(flow.IdentityFilter) 59 } 60 } 61 62 return r0 63 } 64 65 // Sign provides a mock function with given fields: _a0, _a1 66 func (_m *Local) Sign(_a0 []byte, _a1 hash.Hasher) (crypto.Signature, error) { 67 ret := _m.Called(_a0, _a1) 68 69 var r0 crypto.Signature 70 if rf, ok := ret.Get(0).(func([]byte, hash.Hasher) crypto.Signature); ok { 71 r0 = rf(_a0, _a1) 72 } else { 73 if ret.Get(0) != nil { 74 r0 = ret.Get(0).(crypto.Signature) 75 } 76 } 77 78 var r1 error 79 if rf, ok := ret.Get(1).(func([]byte, hash.Hasher) error); ok { 80 r1 = rf(_a0, _a1) 81 } else { 82 r1 = ret.Error(1) 83 } 84 85 return r0, r1 86 } 87 88 // SignFunc provides a mock function with given fields: _a0, _a1, _a2 89 func (_m *Local) SignFunc(_a0 []byte, _a1 hash.Hasher, _a2 func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) (crypto.Signature, error) { 90 ret := _m.Called(_a0, _a1, _a2) 91 92 var r0 crypto.Signature 93 if rf, ok := ret.Get(0).(func([]byte, hash.Hasher, func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) crypto.Signature); ok { 94 r0 = rf(_a0, _a1, _a2) 95 } else { 96 if ret.Get(0) != nil { 97 r0 = ret.Get(0).(crypto.Signature) 98 } 99 } 100 101 var r1 error 102 if rf, ok := ret.Get(1).(func([]byte, hash.Hasher, func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) error); ok { 103 r1 = rf(_a0, _a1, _a2) 104 } else { 105 r1 = ret.Error(1) 106 } 107 108 return r0, r1 109 } 110 111 type mockConstructorTestingTNewLocal interface { 112 mock.TestingT 113 Cleanup(func()) 114 } 115 116 // NewLocal creates a new instance of Local. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 117 func NewLocal(t mockConstructorTestingTNewLocal) *Local { 118 mock := &Local{} 119 mock.Mock.Test(t) 120 121 t.Cleanup(func() { mock.AssertExpectations(t) }) 122 123 return mock 124 }