mocks

package
v0.39.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchVerifier

type BatchVerifier struct {
	mock.Mock
}

BatchVerifier is an autogenerated mock type for the BatchVerifier type

func NewBatchVerifier

func NewBatchVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *BatchVerifier

NewBatchVerifier creates a new instance of BatchVerifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BatchVerifier) Add

func (_m *BatchVerifier) Add(key crypto.PubKey, message []byte, signature []byte) error

Add provides a mock function with given fields: key, message, signature

func (*BatchVerifier) Verify

func (_m *BatchVerifier) Verify() (bool, []bool)

Verify provides a mock function with no fields

type PubKey

type PubKey struct {
	mock.Mock
}

PubKey is an autogenerated mock type for the PubKey type

func NewPubKey

func NewPubKey(t interface {
	mock.TestingT
	Cleanup(func())
}) *PubKey

NewPubKey creates a new instance of PubKey. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PubKey) Address

func (_m *PubKey) Address() crypto.Address

Address provides a mock function with no fields

func (*PubKey) Bytes

func (_m *PubKey) Bytes() []byte

Bytes provides a mock function with no fields

func (*PubKey) Equals

func (_m *PubKey) Equals(_a0 crypto.PubKey) bool

Equals provides a mock function with given fields: _a0

func (*PubKey) Type

func (_m *PubKey) Type() string

Type provides a mock function with no fields

func (*PubKey) VerifySignature

func (_m *PubKey) VerifySignature(msg []byte, sig []byte) bool

VerifySignature provides a mock function with given fields: msg, sig

Jump to

Keyboard shortcuts

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