messagesmocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 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 MockLoader

type MockLoader struct {
	mock.Mock
}

MockLoader is an autogenerated mock type for the Loader type

func NewMockLoader

func NewMockLoader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLoader

NewMockLoader creates a new instance of MockLoader. 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 (*MockLoader) Close

func (_m *MockLoader) Close()

Close provides a mock function with given fields:

func (*MockLoader) EXPECT

func (_m *MockLoader) EXPECT() *MockLoader_Expecter

func (*MockLoader) Error

func (_m *MockLoader) Error(err error)

Error provides a mock function with given fields: err

func (*MockLoader) Nest

func (_m *MockLoader) Nest(message quicklog.Message)

Nest provides a mock function with given fields: message

func (*MockLoader) RunJSON

func (_m *MockLoader) RunJSON() <-chan map[string]interface{}

RunJSON provides a mock function with given fields:

func (*MockLoader) RunTerminal

func (_m *MockLoader) RunTerminal(ci bool) <-chan string

RunTerminal provides a mock function with given fields: ci

func (*MockLoader) Success

func (_m *MockLoader) Success(step string)

Success provides a mock function with given fields: step

func (*MockLoader) Update

func (_m *MockLoader) Update(step string)

Update provides a mock function with given fields: step

type MockLoader_Close_Call

type MockLoader_Close_Call struct {
	*mock.Call
}

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

func (*MockLoader_Close_Call) Return

func (*MockLoader_Close_Call) Run

func (_c *MockLoader_Close_Call) Run(run func()) *MockLoader_Close_Call

func (*MockLoader_Close_Call) RunAndReturn

func (_c *MockLoader_Close_Call) RunAndReturn(run func()) *MockLoader_Close_Call

type MockLoader_Error_Call

type MockLoader_Error_Call struct {
	*mock.Call
}

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

func (*MockLoader_Error_Call) Return

func (*MockLoader_Error_Call) Run

func (_c *MockLoader_Error_Call) Run(run func(err error)) *MockLoader_Error_Call

func (*MockLoader_Error_Call) RunAndReturn

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

type MockLoader_Expecter

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

func (*MockLoader_Expecter) Close

Close is a helper method to define mock.On call

func (*MockLoader_Expecter) Error

func (_e *MockLoader_Expecter) Error(err interface{}) *MockLoader_Error_Call

Error is a helper method to define mock.On call

  • err error

func (*MockLoader_Expecter) Nest

func (_e *MockLoader_Expecter) Nest(message interface{}) *MockLoader_Nest_Call

Nest is a helper method to define mock.On call

  • message quicklog.Message

func (*MockLoader_Expecter) RunJSON

RunJSON is a helper method to define mock.On call

func (*MockLoader_Expecter) RunTerminal

func (_e *MockLoader_Expecter) RunTerminal(ci interface{}) *MockLoader_RunTerminal_Call

RunTerminal is a helper method to define mock.On call

  • ci bool

func (*MockLoader_Expecter) Success

func (_e *MockLoader_Expecter) Success(step interface{}) *MockLoader_Success_Call

Success is a helper method to define mock.On call

  • step string

func (*MockLoader_Expecter) Update

func (_e *MockLoader_Expecter) Update(step interface{}) *MockLoader_Update_Call

Update is a helper method to define mock.On call

  • step string

type MockLoader_Nest_Call

type MockLoader_Nest_Call struct {
	*mock.Call
}

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

func (*MockLoader_Nest_Call) Return

func (*MockLoader_Nest_Call) Run

func (_c *MockLoader_Nest_Call) Run(run func(message quicklog.Message)) *MockLoader_Nest_Call

func (*MockLoader_Nest_Call) RunAndReturn

func (_c *MockLoader_Nest_Call) RunAndReturn(run func(quicklog.Message)) *MockLoader_Nest_Call

type MockLoader_RunJSON_Call

type MockLoader_RunJSON_Call struct {
	*mock.Call
}

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

func (*MockLoader_RunJSON_Call) Return

func (_c *MockLoader_RunJSON_Call) Return(_a0 <-chan map[string]interface{}) *MockLoader_RunJSON_Call

func (*MockLoader_RunJSON_Call) Run

func (_c *MockLoader_RunJSON_Call) Run(run func()) *MockLoader_RunJSON_Call

func (*MockLoader_RunJSON_Call) RunAndReturn

func (_c *MockLoader_RunJSON_Call) RunAndReturn(run func() <-chan map[string]interface{}) *MockLoader_RunJSON_Call

type MockLoader_RunTerminal_Call

type MockLoader_RunTerminal_Call struct {
	*mock.Call
}

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

func (*MockLoader_RunTerminal_Call) Return

func (*MockLoader_RunTerminal_Call) Run

func (*MockLoader_RunTerminal_Call) RunAndReturn

func (_c *MockLoader_RunTerminal_Call) RunAndReturn(run func(bool) <-chan string) *MockLoader_RunTerminal_Call

type MockLoader_Success_Call

type MockLoader_Success_Call struct {
	*mock.Call
}

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

func (*MockLoader_Success_Call) Return

func (*MockLoader_Success_Call) Run

func (_c *MockLoader_Success_Call) Run(run func(step string)) *MockLoader_Success_Call

func (*MockLoader_Success_Call) RunAndReturn

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

type MockLoader_Update_Call

type MockLoader_Update_Call struct {
	*mock.Call
}

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

func (*MockLoader_Update_Call) Return

func (*MockLoader_Update_Call) Run

func (_c *MockLoader_Update_Call) Run(run func(step string)) *MockLoader_Update_Call

func (*MockLoader_Update_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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