github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/local.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 crypto "github.com/onflow/crypto" 7 flow "github.com/onflow/flow-go/model/flow" 8 9 hash "github.com/onflow/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[flow.Identity] { 51 ret := _m.Called() 52 53 var r0 flow.IdentityFilter[flow.Identity] 54 if rf, ok := ret.Get(0).(func() flow.IdentityFilter[flow.Identity]); ok { 55 r0 = rf() 56 } else { 57 if ret.Get(0) != nil { 58 r0 = ret.Get(0).(flow.IdentityFilter[flow.Identity]) 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 var r1 error 71 if rf, ok := ret.Get(0).(func([]byte, hash.Hasher) (crypto.Signature, error)); ok { 72 return rf(_a0, _a1) 73 } 74 if rf, ok := ret.Get(0).(func([]byte, hash.Hasher) crypto.Signature); ok { 75 r0 = rf(_a0, _a1) 76 } else { 77 if ret.Get(0) != nil { 78 r0 = ret.Get(0).(crypto.Signature) 79 } 80 } 81 82 if rf, ok := ret.Get(1).(func([]byte, hash.Hasher) error); ok { 83 r1 = rf(_a0, _a1) 84 } else { 85 r1 = ret.Error(1) 86 } 87 88 return r0, r1 89 } 90 91 // SignFunc provides a mock function with given fields: _a0, _a1, _a2 92 func (_m *Local) SignFunc(_a0 []byte, _a1 hash.Hasher, _a2 func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) (crypto.Signature, error) { 93 ret := _m.Called(_a0, _a1, _a2) 94 95 var r0 crypto.Signature 96 var r1 error 97 if rf, ok := ret.Get(0).(func([]byte, hash.Hasher, func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) (crypto.Signature, error)); ok { 98 return rf(_a0, _a1, _a2) 99 } 100 if rf, ok := ret.Get(0).(func([]byte, hash.Hasher, func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) crypto.Signature); ok { 101 r0 = rf(_a0, _a1, _a2) 102 } else { 103 if ret.Get(0) != nil { 104 r0 = ret.Get(0).(crypto.Signature) 105 } 106 } 107 108 if rf, ok := ret.Get(1).(func([]byte, hash.Hasher, func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) error); ok { 109 r1 = rf(_a0, _a1, _a2) 110 } else { 111 r1 = ret.Error(1) 112 } 113 114 return r0, r1 115 } 116 117 type mockConstructorTestingTNewLocal interface { 118 mock.TestingT 119 Cleanup(func()) 120 } 121 122 // 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. 123 func NewLocal(t mockConstructorTestingTNewLocal) *Local { 124 mock := &Local{} 125 mock.Mock.Test(t) 126 127 t.Cleanup(func() { mock.AssertExpectations(t) }) 128 129 return mock 130 }