quicklogmocks

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 MockAnimatedMessage

type MockAnimatedMessage struct {
	mock.Mock
}

MockAnimatedMessage is an autogenerated mock type for the AnimatedMessage type

func NewMockAnimatedMessage

func NewMockAnimatedMessage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAnimatedMessage

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

func (_m *MockAnimatedMessage) Close()

Close provides a mock function with given fields:

func (*MockAnimatedMessage) EXPECT

func (*MockAnimatedMessage) RunJSON

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

RunJSON provides a mock function with given fields:

func (*MockAnimatedMessage) RunTerminal

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

RunTerminal provides a mock function with given fields: ci

type MockAnimatedMessage_Close_Call

type MockAnimatedMessage_Close_Call struct {
	*mock.Call
}

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

func (*MockAnimatedMessage_Close_Call) Return

func (*MockAnimatedMessage_Close_Call) Run

func (*MockAnimatedMessage_Close_Call) RunAndReturn

func (_c *MockAnimatedMessage_Close_Call) RunAndReturn(run func()) *MockAnimatedMessage_Close_Call

type MockAnimatedMessage_Expecter

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

func (*MockAnimatedMessage_Expecter) Close

Close is a helper method to define mock.On call

func (*MockAnimatedMessage_Expecter) RunJSON

RunJSON is a helper method to define mock.On call

func (*MockAnimatedMessage_Expecter) RunTerminal

func (_e *MockAnimatedMessage_Expecter) RunTerminal(ci interface{}) *MockAnimatedMessage_RunTerminal_Call

RunTerminal is a helper method to define mock.On call

  • ci bool

type MockAnimatedMessage_RunJSON_Call

type MockAnimatedMessage_RunJSON_Call struct {
	*mock.Call
}

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

func (*MockAnimatedMessage_RunJSON_Call) Return

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

func (*MockAnimatedMessage_RunJSON_Call) Run

func (*MockAnimatedMessage_RunJSON_Call) RunAndReturn

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

type MockAnimatedMessage_RunTerminal_Call

type MockAnimatedMessage_RunTerminal_Call struct {
	*mock.Call
}

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

func (*MockAnimatedMessage_RunTerminal_Call) Return

func (*MockAnimatedMessage_RunTerminal_Call) Run

func (*MockAnimatedMessage_RunTerminal_Call) RunAndReturn

type MockLogger

type MockLogger struct {
	mock.Mock
}

MockLogger is an autogenerated mock type for the Logger type

func NewMockLogger

func NewMockLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLogger

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

func (_m *MockLogger) EXPECT() *MockLogger_Expecter

func (*MockLogger) Log

func (_m *MockLogger) Log(level quicklog.Level, message quicklog.Message)

Log provides a mock function with given fields: level, message

func (*MockLogger) LogAnimated

func (_m *MockLogger) LogAnimated(message quicklog.AnimatedMessage) func()

LogAnimated provides a mock function with given fields: message

type MockLogger_Expecter

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

func (*MockLogger_Expecter) Log

func (_e *MockLogger_Expecter) Log(level interface{}, message interface{}) *MockLogger_Log_Call

Log is a helper method to define mock.On call

  • level quicklog.Level
  • message quicklog.Message

func (*MockLogger_Expecter) LogAnimated

func (_e *MockLogger_Expecter) LogAnimated(message interface{}) *MockLogger_LogAnimated_Call

LogAnimated is a helper method to define mock.On call

  • message quicklog.AnimatedMessage

type MockLogger_LogAnimated_Call

type MockLogger_LogAnimated_Call struct {
	*mock.Call
}

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

func (*MockLogger_LogAnimated_Call) Return

func (_c *MockLogger_LogAnimated_Call) Return(cleaner func()) *MockLogger_LogAnimated_Call

func (*MockLogger_LogAnimated_Call) Run

func (*MockLogger_LogAnimated_Call) RunAndReturn

type MockLogger_Log_Call

type MockLogger_Log_Call struct {
	*mock.Call
}

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

func (*MockLogger_Log_Call) Return

func (*MockLogger_Log_Call) Run

func (_c *MockLogger_Log_Call) Run(run func(level quicklog.Level, message quicklog.Message)) *MockLogger_Log_Call

func (*MockLogger_Log_Call) RunAndReturn

func (_c *MockLogger_Log_Call) RunAndReturn(run func(quicklog.Level, quicklog.Message)) *MockLogger_Log_Call

type MockMessage

type MockMessage struct {
	mock.Mock
}

MockMessage is an autogenerated mock type for the Message type

func NewMockMessage

func NewMockMessage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMessage

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

func (_m *MockMessage) EXPECT() *MockMessage_Expecter

func (*MockMessage) RenderJSON

func (_m *MockMessage) RenderJSON() map[string]interface{}

RenderJSON provides a mock function with given fields:

func (*MockMessage) RenderTerminal

func (_m *MockMessage) RenderTerminal() string

RenderTerminal provides a mock function with given fields:

type MockMessage_Expecter

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

func (*MockMessage_Expecter) RenderJSON

RenderJSON is a helper method to define mock.On call

func (*MockMessage_Expecter) RenderTerminal

RenderTerminal is a helper method to define mock.On call

type MockMessage_RenderJSON_Call

type MockMessage_RenderJSON_Call struct {
	*mock.Call
}

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

func (*MockMessage_RenderJSON_Call) Return

func (_c *MockMessage_RenderJSON_Call) Return(_a0 map[string]interface{}) *MockMessage_RenderJSON_Call

func (*MockMessage_RenderJSON_Call) Run

func (*MockMessage_RenderJSON_Call) RunAndReturn

func (_c *MockMessage_RenderJSON_Call) RunAndReturn(run func() map[string]interface{}) *MockMessage_RenderJSON_Call

type MockMessage_RenderTerminal_Call

type MockMessage_RenderTerminal_Call struct {
	*mock.Call
}

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

func (*MockMessage_RenderTerminal_Call) Return

func (*MockMessage_RenderTerminal_Call) Run

func (*MockMessage_RenderTerminal_Call) RunAndReturn

Jump to

Keyboard shortcuts

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