Documentation
¶
Index ¶
- type MockLog
- func (_mock *MockLog) Close(c context.Context, stepID int64) error
- func (_m *MockLog) EXPECT() *MockLog_Expecter
- func (_mock *MockLog) Open(c context.Context, stepID int64) error
- func (_mock *MockLog) Tail(c context.Context, stepID int64, handler logging.LogChan) error
- func (_mock *MockLog) Write(c context.Context, stepID int64, entries []*model.LogEntry) error
- type MockLog_Close_Call
- type MockLog_Expecter
- func (_e *MockLog_Expecter) Close(c interface{}, stepID interface{}) *MockLog_Close_Call
- func (_e *MockLog_Expecter) Open(c interface{}, stepID interface{}) *MockLog_Open_Call
- func (_e *MockLog_Expecter) Tail(c interface{}, stepID interface{}, handler interface{}) *MockLog_Tail_Call
- func (_e *MockLog_Expecter) Write(c interface{}, stepID interface{}, entries interface{}) *MockLog_Write_Call
- type MockLog_Open_Call
- type MockLog_Tail_Call
- func (_c *MockLog_Tail_Call) Return(err error) *MockLog_Tail_Call
- func (_c *MockLog_Tail_Call) Run(run func(c context.Context, stepID int64, handler logging.LogChan)) *MockLog_Tail_Call
- func (_c *MockLog_Tail_Call) RunAndReturn(run func(c context.Context, stepID int64, handler logging.LogChan) error) *MockLog_Tail_Call
- type MockLog_Write_Call
- func (_c *MockLog_Write_Call) Return(err error) *MockLog_Write_Call
- func (_c *MockLog_Write_Call) Run(run func(c context.Context, stepID int64, entries []*model.LogEntry)) *MockLog_Write_Call
- func (_c *MockLog_Write_Call) RunAndReturn(run func(c context.Context, stepID int64, entries []*model.LogEntry) error) *MockLog_Write_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLog ¶
MockLog is an autogenerated mock type for the Log type
func NewMockLog ¶
NewMockLog creates a new instance of MockLog. 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 (*MockLog) EXPECT ¶
func (_m *MockLog) EXPECT() *MockLog_Expecter
type MockLog_Close_Call ¶
MockLog_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockLog_Close_Call) Return ¶
func (_c *MockLog_Close_Call) Return(err error) *MockLog_Close_Call
func (*MockLog_Close_Call) Run ¶
func (_c *MockLog_Close_Call) Run(run func(c context.Context, stepID int64)) *MockLog_Close_Call
func (*MockLog_Close_Call) RunAndReturn ¶
func (_c *MockLog_Close_Call) RunAndReturn(run func(c context.Context, stepID int64) error) *MockLog_Close_Call
type MockLog_Expecter ¶
type MockLog_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLog_Expecter) Close ¶
func (_e *MockLog_Expecter) Close(c interface{}, stepID interface{}) *MockLog_Close_Call
Close is a helper method to define mock.On call
- c
- stepID
func (*MockLog_Expecter) Open ¶
func (_e *MockLog_Expecter) Open(c interface{}, stepID interface{}) *MockLog_Open_Call
Open is a helper method to define mock.On call
- c
- stepID
func (*MockLog_Expecter) Tail ¶
func (_e *MockLog_Expecter) Tail(c interface{}, stepID interface{}, handler interface{}) *MockLog_Tail_Call
Tail is a helper method to define mock.On call
- c
- stepID
- handler
func (*MockLog_Expecter) Write ¶
func (_e *MockLog_Expecter) Write(c interface{}, stepID interface{}, entries interface{}) *MockLog_Write_Call
Write is a helper method to define mock.On call
- c
- stepID
- entries
type MockLog_Open_Call ¶
MockLog_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*MockLog_Open_Call) Return ¶
func (_c *MockLog_Open_Call) Return(err error) *MockLog_Open_Call
func (*MockLog_Open_Call) Run ¶
func (_c *MockLog_Open_Call) Run(run func(c context.Context, stepID int64)) *MockLog_Open_Call
func (*MockLog_Open_Call) RunAndReturn ¶
func (_c *MockLog_Open_Call) RunAndReturn(run func(c context.Context, stepID int64) error) *MockLog_Open_Call
type MockLog_Tail_Call ¶
MockLog_Tail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tail'
func (*MockLog_Tail_Call) Return ¶
func (_c *MockLog_Tail_Call) Return(err error) *MockLog_Tail_Call
func (*MockLog_Tail_Call) Run ¶
func (_c *MockLog_Tail_Call) Run(run func(c context.Context, stepID int64, handler logging.LogChan)) *MockLog_Tail_Call
func (*MockLog_Tail_Call) RunAndReturn ¶
func (_c *MockLog_Tail_Call) RunAndReturn(run func(c context.Context, stepID int64, handler logging.LogChan) error) *MockLog_Tail_Call
type MockLog_Write_Call ¶
MockLog_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*MockLog_Write_Call) Return ¶
func (_c *MockLog_Write_Call) Return(err error) *MockLog_Write_Call
func (*MockLog_Write_Call) Run ¶
func (_c *MockLog_Write_Call) Run(run func(c context.Context, stepID int64, entries []*model.LogEntry)) *MockLog_Write_Call
func (*MockLog_Write_Call) RunAndReturn ¶
func (_c *MockLog_Write_Call) RunAndReturn(run func(c context.Context, stepID int64, entries []*model.LogEntry) error) *MockLog_Write_Call