mocklocal

package
v0.35.13 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: AGPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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