mock

package
v0.46.2-util-remove-ex... Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: AGPL-3.0 Imports: 2 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 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