mocklocal

package
v0.35.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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) Address

func (m *MockLocal) Address() string

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]

func (*MockLocal) Sign

func (m *MockLocal) Sign(msg []byte, hasher hash.Hasher) (crypto.Signature, error)

func (*MockLocal) SignFunc

func (m *MockLocal) SignFunc(data []byte, hasher hash.Hasher, f func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature,
	error)) (crypto.Signature, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL