mock

package
v0.46.1-ledger-service.1 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 Core

type Core struct {
	mock.Mock
}

Core is an autogenerated mock type for the Core type

func NewCore

func NewCore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Core

NewCore creates a new instance of Core. 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 (*Core) Abandon

func (_mock *Core) Abandon()

Abandon provides a mock function for the type Core

func (*Core) Download

func (_mock *Core) Download(ctx context.Context) error

Download provides a mock function for the type Core

func (*Core) EXPECT added in v0.46.0

func (_m *Core) EXPECT() *Core_Expecter

func (*Core) Index

func (_mock *Core) Index() error

Index provides a mock function for the type Core

func (*Core) Persist

func (_mock *Core) Persist() error

Persist provides a mock function for the type Core

type Core_Abandon_Call added in v0.46.0

type Core_Abandon_Call struct {
	*mock.Call
}

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

func (*Core_Abandon_Call) Return added in v0.46.0

func (_c *Core_Abandon_Call) Return() *Core_Abandon_Call

func (*Core_Abandon_Call) Run added in v0.46.0

func (_c *Core_Abandon_Call) Run(run func()) *Core_Abandon_Call

func (*Core_Abandon_Call) RunAndReturn added in v0.46.0

func (_c *Core_Abandon_Call) RunAndReturn(run func()) *Core_Abandon_Call

type Core_Download_Call added in v0.46.0

type Core_Download_Call struct {
	*mock.Call
}

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

func (*Core_Download_Call) Return added in v0.46.0

func (_c *Core_Download_Call) Return(err error) *Core_Download_Call

func (*Core_Download_Call) Run added in v0.46.0

func (_c *Core_Download_Call) Run(run func(ctx context.Context)) *Core_Download_Call

func (*Core_Download_Call) RunAndReturn added in v0.46.0

func (_c *Core_Download_Call) RunAndReturn(run func(ctx context.Context) error) *Core_Download_Call

type Core_Expecter added in v0.46.0

type Core_Expecter struct {
	// contains filtered or unexported fields
}

func (*Core_Expecter) Abandon added in v0.46.0

func (_e *Core_Expecter) Abandon() *Core_Abandon_Call

Abandon is a helper method to define mock.On call

func (*Core_Expecter) Download added in v0.46.0

func (_e *Core_Expecter) Download(ctx interface{}) *Core_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context

func (*Core_Expecter) Index added in v0.46.0

func (_e *Core_Expecter) Index() *Core_Index_Call

Index is a helper method to define mock.On call

func (*Core_Expecter) Persist added in v0.46.0

func (_e *Core_Expecter) Persist() *Core_Persist_Call

Persist is a helper method to define mock.On call

type Core_Index_Call added in v0.46.0

type Core_Index_Call struct {
	*mock.Call
}

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

func (*Core_Index_Call) Return added in v0.46.0

func (_c *Core_Index_Call) Return(err error) *Core_Index_Call

func (*Core_Index_Call) Run added in v0.46.0

func (_c *Core_Index_Call) Run(run func()) *Core_Index_Call

func (*Core_Index_Call) RunAndReturn added in v0.46.0

func (_c *Core_Index_Call) RunAndReturn(run func() error) *Core_Index_Call

type Core_Persist_Call added in v0.46.0

type Core_Persist_Call struct {
	*mock.Call
}

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

func (*Core_Persist_Call) Return added in v0.46.0

func (_c *Core_Persist_Call) Return(err error) *Core_Persist_Call

func (*Core_Persist_Call) Run added in v0.46.0

func (_c *Core_Persist_Call) Run(run func()) *Core_Persist_Call

func (*Core_Persist_Call) RunAndReturn added in v0.46.0

func (_c *Core_Persist_Call) RunAndReturn(run func() error) *Core_Persist_Call

Jump to

Keyboard shortcuts

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