mock

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: AGPL-3.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 LinkGenerator

type LinkGenerator struct {
	mock.Mock
}

LinkGenerator is an autogenerated mock type for the LinkGenerator type

func NewLinkGenerator

func NewLinkGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *LinkGenerator

NewLinkGenerator creates a new instance of LinkGenerator. 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 (_mock *LinkGenerator) AccountLink(address string) (string, error)

AccountLink provides a mock function for the type LinkGenerator

func (_mock *LinkGenerator) BlockLink(id flow.Identifier) (string, error)

BlockLink provides a mock function for the type LinkGenerator

func (_mock *LinkGenerator) CollectionLink(id flow.Identifier) (string, error)

CollectionLink provides a mock function for the type LinkGenerator

func (*LinkGenerator) EXPECT added in v0.46.0

func (_m *LinkGenerator) EXPECT() *LinkGenerator_Expecter
func (_mock *LinkGenerator) ExecutionResultLink(id flow.Identifier) (string, error)

ExecutionResultLink provides a mock function for the type LinkGenerator

func (_mock *LinkGenerator) PayloadLink(id flow.Identifier) (string, error)

PayloadLink provides a mock function for the type LinkGenerator

func (_mock *LinkGenerator) TransactionLink(id flow.Identifier) (string, error)

TransactionLink provides a mock function for the type LinkGenerator

func (_mock *LinkGenerator) TransactionResultLink(id flow.Identifier) (string, error)

TransactionResultLink provides a mock function for the type LinkGenerator

type LinkGenerator_AccountLink_Call struct {
	*mock.Call
}

LinkGenerator_AccountLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccountLink'

func (_c *LinkGenerator_AccountLink_Call) RunAndReturn(run func(address string) (string, error)) *LinkGenerator_AccountLink_Call
type LinkGenerator_BlockLink_Call struct {
	*mock.Call
}

LinkGenerator_BlockLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockLink'

type LinkGenerator_CollectionLink_Call struct {
	*mock.Call
}

LinkGenerator_CollectionLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CollectionLink'

type LinkGenerator_ExecutionResultLink_Call struct {
	*mock.Call
}

LinkGenerator_ExecutionResultLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecutionResultLink'

type LinkGenerator_Expecter added in v0.46.0

type LinkGenerator_Expecter struct {
	// contains filtered or unexported fields
}
func (_e *LinkGenerator_Expecter) AccountLink(address interface{}) *LinkGenerator_AccountLink_Call

AccountLink is a helper method to define mock.On call

  • address string
func (_e *LinkGenerator_Expecter) BlockLink(id interface{}) *LinkGenerator_BlockLink_Call

BlockLink is a helper method to define mock.On call

  • id flow.Identifier
func (_e *LinkGenerator_Expecter) CollectionLink(id interface{}) *LinkGenerator_CollectionLink_Call

CollectionLink is a helper method to define mock.On call

  • id flow.Identifier
func (_e *LinkGenerator_Expecter) ExecutionResultLink(id interface{}) *LinkGenerator_ExecutionResultLink_Call

ExecutionResultLink is a helper method to define mock.On call

  • id flow.Identifier
func (_e *LinkGenerator_Expecter) PayloadLink(id interface{}) *LinkGenerator_PayloadLink_Call

PayloadLink is a helper method to define mock.On call

  • id flow.Identifier
func (_e *LinkGenerator_Expecter) TransactionLink(id interface{}) *LinkGenerator_TransactionLink_Call

TransactionLink is a helper method to define mock.On call

  • id flow.Identifier
func (_e *LinkGenerator_Expecter) TransactionResultLink(id interface{}) *LinkGenerator_TransactionResultLink_Call

TransactionResultLink is a helper method to define mock.On call

  • id flow.Identifier
type LinkGenerator_PayloadLink_Call struct {
	*mock.Call
}

LinkGenerator_PayloadLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PayloadLink'

type LinkGenerator_TransactionLink_Call struct {
	*mock.Call
}

LinkGenerator_TransactionLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionLink'

type LinkGenerator_TransactionResultLink_Call struct {
	*mock.Call
}

LinkGenerator_TransactionResultLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionResultLink'

Jump to

Keyboard shortcuts

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