mocklocal

package
v0.29.0-stable-cadence-4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 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

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