Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.43.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 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 (_m *Core) Abandon()

Abandon provides a mock function with no fields

func (*Core) Download

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

Download provides a mock function with given fields: ctx

func (*Core) Index

func (_m *Core) Index() error

Index provides a mock function with no fields

func (*Core) Persist

func (_m *Core) Persist() error

Persist provides a mock function with no fields

Jump to

Keyboard shortcuts

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