Documentation
¶
Index ¶
- type MockAnimatedMessage
- type MockAnimatedMessage_Close_Call
- type MockAnimatedMessage_Expecter
- type MockAnimatedMessage_RunJSON_Call
- func (_c *MockAnimatedMessage_RunJSON_Call) Return(_a0 <-chan map[string]interface{}) *MockAnimatedMessage_RunJSON_Call
- func (_c *MockAnimatedMessage_RunJSON_Call) Run(run func()) *MockAnimatedMessage_RunJSON_Call
- func (_c *MockAnimatedMessage_RunJSON_Call) RunAndReturn(run func() <-chan map[string]interface{}) *MockAnimatedMessage_RunJSON_Call
- type MockAnimatedMessage_RunTerminal_Call
- func (_c *MockAnimatedMessage_RunTerminal_Call) Return(_a0 <-chan string) *MockAnimatedMessage_RunTerminal_Call
- func (_c *MockAnimatedMessage_RunTerminal_Call) Run(run func(ci bool)) *MockAnimatedMessage_RunTerminal_Call
- func (_c *MockAnimatedMessage_RunTerminal_Call) RunAndReturn(run func(bool) <-chan string) *MockAnimatedMessage_RunTerminal_Call
- type MockLogger
- type MockLogger_Expecter
- type MockLogger_LogAnimated_Call
- func (_c *MockLogger_LogAnimated_Call) Return(cleaner func()) *MockLogger_LogAnimated_Call
- func (_c *MockLogger_LogAnimated_Call) Run(run func(message quicklog.AnimatedMessage)) *MockLogger_LogAnimated_Call
- func (_c *MockLogger_LogAnimated_Call) RunAndReturn(run func(quicklog.AnimatedMessage) func()) *MockLogger_LogAnimated_Call
- type MockLogger_Log_Call
- type MockMessage
- type MockMessage_Expecter
- type MockMessage_RenderJSON_Call
- func (_c *MockMessage_RenderJSON_Call) Return(_a0 map[string]interface{}) *MockMessage_RenderJSON_Call
- func (_c *MockMessage_RenderJSON_Call) Run(run func()) *MockMessage_RenderJSON_Call
- func (_c *MockMessage_RenderJSON_Call) RunAndReturn(run func() map[string]interface{}) *MockMessage_RenderJSON_Call
- type MockMessage_RenderTerminal_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAnimatedMessage ¶
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 (_m *MockAnimatedMessage) EXPECT() *MockAnimatedMessage_Expecter
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 ¶
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 (_c *MockAnimatedMessage_Close_Call) Return() *MockAnimatedMessage_Close_Call
func (*MockAnimatedMessage_Close_Call) Run ¶
func (_c *MockAnimatedMessage_Close_Call) Run(run func()) *MockAnimatedMessage_Close_Call
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 ¶
func (_e *MockAnimatedMessage_Expecter) Close() *MockAnimatedMessage_Close_Call
Close is a helper method to define mock.On call
func (*MockAnimatedMessage_Expecter) RunJSON ¶
func (_e *MockAnimatedMessage_Expecter) RunJSON() *MockAnimatedMessage_RunJSON_Call
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 ¶
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 (_c *MockAnimatedMessage_RunJSON_Call) Run(run func()) *MockAnimatedMessage_RunJSON_Call
func (*MockAnimatedMessage_RunJSON_Call) RunAndReturn ¶
func (_c *MockAnimatedMessage_RunJSON_Call) RunAndReturn(run func() <-chan map[string]interface{}) *MockAnimatedMessage_RunJSON_Call
type MockAnimatedMessage_RunTerminal_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 (_c *MockAnimatedMessage_RunTerminal_Call) Return(_a0 <-chan string) *MockAnimatedMessage_RunTerminal_Call
func (*MockAnimatedMessage_RunTerminal_Call) Run ¶
func (_c *MockAnimatedMessage_RunTerminal_Call) Run(run func(ci bool)) *MockAnimatedMessage_RunTerminal_Call
func (*MockAnimatedMessage_RunTerminal_Call) RunAndReturn ¶
func (_c *MockAnimatedMessage_RunTerminal_Call) RunAndReturn(run func(bool) <-chan string) *MockAnimatedMessage_RunTerminal_Call
type MockLogger ¶
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 ¶
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 (_c *MockLogger_LogAnimated_Call) Run(run func(message quicklog.AnimatedMessage)) *MockLogger_LogAnimated_Call
func (*MockLogger_LogAnimated_Call) RunAndReturn ¶
func (_c *MockLogger_LogAnimated_Call) RunAndReturn(run func(quicklog.AnimatedMessage) func()) *MockLogger_LogAnimated_Call
type MockLogger_Log_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 (_c *MockLogger_Log_Call) Return() *MockLogger_Log_Call
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 ¶
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 ¶
func (_e *MockMessage_Expecter) RenderJSON() *MockMessage_RenderJSON_Call
RenderJSON is a helper method to define mock.On call
func (*MockMessage_Expecter) RenderTerminal ¶
func (_e *MockMessage_Expecter) RenderTerminal() *MockMessage_RenderTerminal_Call
RenderTerminal is a helper method to define mock.On call
type MockMessage_RenderJSON_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 (_c *MockMessage_RenderJSON_Call) Run(run func()) *MockMessage_RenderJSON_Call
func (*MockMessage_RenderJSON_Call) RunAndReturn ¶
func (_c *MockMessage_RenderJSON_Call) RunAndReturn(run func() map[string]interface{}) *MockMessage_RenderJSON_Call
type MockMessage_RenderTerminal_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 (_c *MockMessage_RenderTerminal_Call) Return(_a0 string) *MockMessage_RenderTerminal_Call
func (*MockMessage_RenderTerminal_Call) Run ¶
func (_c *MockMessage_RenderTerminal_Call) Run(run func()) *MockMessage_RenderTerminal_Call
func (*MockMessage_RenderTerminal_Call) RunAndReturn ¶
func (_c *MockMessage_RenderTerminal_Call) RunAndReturn(run func() string) *MockMessage_RenderTerminal_Call