core

package
v0.0.0-...-b22d371 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEchoer

type MockEchoer struct {
	mock.Mock
}

MockEchoer is an autogenerated mock type for the Echoer type

func NewMockEchoer

func NewMockEchoer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEchoer

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

func (_m *MockEchoer) EXPECT() *MockEchoer_Expecter

func (*MockEchoer) Echo

func (_m *MockEchoer) Echo(_a0 string) string

Echo provides a mock function with given fields: _a0

type MockEchoer_Echo_Call

type MockEchoer_Echo_Call struct {
	*mock.Call
}

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

func (*MockEchoer_Echo_Call) Return

func (*MockEchoer_Echo_Call) Run

func (_c *MockEchoer_Echo_Call) Run(run func(_a0 string)) *MockEchoer_Echo_Call

func (*MockEchoer_Echo_Call) RunAndReturn

func (_c *MockEchoer_Echo_Call) RunAndReturn(run func(string) string) *MockEchoer_Echo_Call

type MockEchoer_Expecter

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

func (*MockEchoer_Expecter) Echo

func (_e *MockEchoer_Expecter) Echo(_a0 interface{}) *MockEchoer_Echo_Call

Echo is a helper method to define mock.On call

  • _a0 string

Jump to

Keyboard shortcuts

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