mock

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEditor

type MockEditor struct {
	mock.Mock
}

MockEditor is an autogenerated mock type for the Editor type

func NewMockEditor

func NewMockEditor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEditor

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

func (_m *MockEditor) EXPECT() *MockEditor_Expecter

func (*MockEditor) EditProto

func (_mock *MockEditor) EditProto(existing proto.Message) (proto.Message, error)

EditProto provides a mock function for the type MockEditor

type MockEditor_EditProto_Call

type MockEditor_EditProto_Call struct {
	*mock.Call
}

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

func (*MockEditor_EditProto_Call) Return

func (*MockEditor_EditProto_Call) Run

func (*MockEditor_EditProto_Call) RunAndReturn

func (_c *MockEditor_EditProto_Call) RunAndReturn(run func(existing proto.Message) (proto.Message, error)) *MockEditor_EditProto_Call

type MockEditor_Expecter

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

func (*MockEditor_Expecter) EditProto

func (_e *MockEditor_Expecter) EditProto(existing interface{}) *MockEditor_EditProto_Call

EditProto is a helper method to define mock.On call

  • existing proto.Message

Jump to

Keyboard shortcuts

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