Documentation ¶
Index ¶
- type MockLocal
- func (m *MockLocal) Address() string
- func (m *MockLocal) MockNodeID(id flow.Identifier)
- func (m *MockLocal) NodeID() flow.Identifier
- func (m *MockLocal) NotMeFilter() flow.IdentityFilter[flow.Identity]
- func (m *MockLocal) Sign(msg []byte, hasher hash.Hasher) (crypto.Signature, error)
- func (m *MockLocal) SignFunc(data []byte, hasher hash.Hasher, ...) (crypto.Signature, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLocal ¶
type MockLocal struct {
// contains filtered or unexported fields
}
MockLocal represents a mock of Local We needed to develop a separate mock for Local as we could not mock a method with return values with gomock
func NewMockLocal ¶
func NewMockLocal(sk crypto.PrivateKey, id flow.Identifier, t mock.TestingT) *MockLocal
func (*MockLocal) MockNodeID ¶
func (m *MockLocal) MockNodeID(id flow.Identifier)
func (*MockLocal) NodeID ¶
func (m *MockLocal) NodeID() flow.Identifier
func (*MockLocal) NotMeFilter ¶
func (m *MockLocal) NotMeFilter() flow.IdentityFilter[flow.Identity]
Click to show internal directories.
Click to hide internal directories.