mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMessageCatalog

type MockMessageCatalog struct {
	mock.Mock
}

MockMessageCatalog is an autogenerated mock type for the MessageCatalog type

func NewMockMessageCatalog

func NewMockMessageCatalog(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMessageCatalog

NewMockMessageCatalog creates a new instance of MockMessageCatalog. 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 (*MockMessageCatalog) EXPECT

func (*MockMessageCatalog) Get

func (_mock *MockMessageCatalog) Get(message messages.MessageKey) string

Get provides a mock function for the type MockMessageCatalog

type MockMessageCatalog_Expecter

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

func (*MockMessageCatalog_Expecter) Get

func (_e *MockMessageCatalog_Expecter) Get(message interface{}) *MockMessageCatalog_Get_Call

Get is a helper method to define mock.On call

  • message messages.MessageKey

type MockMessageCatalog_Get_Call

type MockMessageCatalog_Get_Call struct {
	*mock.Call
}

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

func (*MockMessageCatalog_Get_Call) Return

func (*MockMessageCatalog_Get_Call) Run

func (*MockMessageCatalog_Get_Call) RunAndReturn

Jump to

Keyboard shortcuts

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