Documentation ¶
Index ¶
- type MockCollector
- func (_m *MockCollector) AnyReader(ctx context.Context) io.Reader
- func (_m *MockCollector) Close() error
- func (_m *MockCollector) EXPECT() *MockCollector_Expecter
- func (_m *MockCollector) LogOutput()
- func (_m *MockCollector) Start(stdoutPipe io.ReadCloser, stderrPipe io.ReadCloser) error
- func (_m *MockCollector) StderrReader(ctx context.Context) io.Reader
- func (_m *MockCollector) StderrWriter() io.Writer
- func (_m *MockCollector) StdoutReader(ctx context.Context) io.Reader
- func (_m *MockCollector) StdoutWriter() io.Writer
- func (_m *MockCollector) Wait()
- type MockCollector_AnyReader_Call
- func (_c *MockCollector_AnyReader_Call) Return(_a0 io.Reader) *MockCollector_AnyReader_Call
- func (_c *MockCollector_AnyReader_Call) Run(run func(ctx context.Context)) *MockCollector_AnyReader_Call
- func (_c *MockCollector_AnyReader_Call) RunAndReturn(run func(context.Context) io.Reader) *MockCollector_AnyReader_Call
- type MockCollector_Close_Call
- type MockCollector_Expecter
- func (_e *MockCollector_Expecter) AnyReader(ctx interface{}) *MockCollector_AnyReader_Call
- func (_e *MockCollector_Expecter) Close() *MockCollector_Close_Call
- func (_e *MockCollector_Expecter) LogOutput() *MockCollector_LogOutput_Call
- func (_e *MockCollector_Expecter) Start(stdoutPipe interface{}, stderrPipe interface{}) *MockCollector_Start_Call
- func (_e *MockCollector_Expecter) StderrReader(ctx interface{}) *MockCollector_StderrReader_Call
- func (_e *MockCollector_Expecter) StderrWriter() *MockCollector_StderrWriter_Call
- func (_e *MockCollector_Expecter) StdoutReader(ctx interface{}) *MockCollector_StdoutReader_Call
- func (_e *MockCollector_Expecter) StdoutWriter() *MockCollector_StdoutWriter_Call
- func (_e *MockCollector_Expecter) Wait() *MockCollector_Wait_Call
- type MockCollector_LogOutput_Call
- type MockCollector_Start_Call
- func (_c *MockCollector_Start_Call) Return(_a0 error) *MockCollector_Start_Call
- func (_c *MockCollector_Start_Call) Run(run func(stdoutPipe io.ReadCloser, stderrPipe io.ReadCloser)) *MockCollector_Start_Call
- func (_c *MockCollector_Start_Call) RunAndReturn(run func(io.ReadCloser, io.ReadCloser) error) *MockCollector_Start_Call
- type MockCollector_StderrReader_Call
- func (_c *MockCollector_StderrReader_Call) Return(_a0 io.Reader) *MockCollector_StderrReader_Call
- func (_c *MockCollector_StderrReader_Call) Run(run func(ctx context.Context)) *MockCollector_StderrReader_Call
- func (_c *MockCollector_StderrReader_Call) RunAndReturn(run func(context.Context) io.Reader) *MockCollector_StderrReader_Call
- type MockCollector_StderrWriter_Call
- func (_c *MockCollector_StderrWriter_Call) Return(_a0 io.Writer) *MockCollector_StderrWriter_Call
- func (_c *MockCollector_StderrWriter_Call) Run(run func()) *MockCollector_StderrWriter_Call
- func (_c *MockCollector_StderrWriter_Call) RunAndReturn(run func() io.Writer) *MockCollector_StderrWriter_Call
- type MockCollector_StdoutReader_Call
- func (_c *MockCollector_StdoutReader_Call) Return(_a0 io.Reader) *MockCollector_StdoutReader_Call
- func (_c *MockCollector_StdoutReader_Call) Run(run func(ctx context.Context)) *MockCollector_StdoutReader_Call
- func (_c *MockCollector_StdoutReader_Call) RunAndReturn(run func(context.Context) io.Reader) *MockCollector_StdoutReader_Call
- type MockCollector_StdoutWriter_Call
- func (_c *MockCollector_StdoutWriter_Call) Return(_a0 io.Writer) *MockCollector_StdoutWriter_Call
- func (_c *MockCollector_StdoutWriter_Call) Run(run func()) *MockCollector_StdoutWriter_Call
- func (_c *MockCollector_StdoutWriter_Call) RunAndReturn(run func() io.Writer) *MockCollector_StdoutWriter_Call
- type MockCollector_Wait_Call
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_MakeCollector_Call
- func (_c *MockMaker_MakeCollector_Call) Return(_a0 output.Collector) *MockMaker_MakeCollector_Call
- func (_c *MockMaker_MakeCollector_Call) Run(run func(tid string)) *MockMaker_MakeCollector_Call
- func (_c *MockMaker_MakeCollector_Call) RunAndReturn(run func(string) output.Collector) *MockMaker_MakeCollector_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCollector ¶
MockCollector is an autogenerated mock type for the Collector type
func NewMockCollector ¶
func NewMockCollector(t interface { mock.TestingT Cleanup(func()) }) *MockCollector
NewMockCollector creates a new instance of MockCollector. 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 (*MockCollector) AnyReader ¶
func (_m *MockCollector) AnyReader(ctx context.Context) io.Reader
AnyReader provides a mock function with given fields: ctx
func (*MockCollector) Close ¶
func (_m *MockCollector) Close() error
Close provides a mock function with given fields:
func (*MockCollector) EXPECT ¶
func (_m *MockCollector) EXPECT() *MockCollector_Expecter
func (*MockCollector) LogOutput ¶
func (_m *MockCollector) LogOutput()
LogOutput provides a mock function with given fields:
func (*MockCollector) Start ¶
func (_m *MockCollector) Start(stdoutPipe io.ReadCloser, stderrPipe io.ReadCloser) error
Start provides a mock function with given fields: stdoutPipe, stderrPipe
func (*MockCollector) StderrReader ¶
func (_m *MockCollector) StderrReader(ctx context.Context) io.Reader
StderrReader provides a mock function with given fields: ctx
func (*MockCollector) StderrWriter ¶
func (_m *MockCollector) StderrWriter() io.Writer
StderrWriter provides a mock function with given fields:
func (*MockCollector) StdoutReader ¶
func (_m *MockCollector) StdoutReader(ctx context.Context) io.Reader
StdoutReader provides a mock function with given fields: ctx
func (*MockCollector) StdoutWriter ¶
func (_m *MockCollector) StdoutWriter() io.Writer
StdoutWriter provides a mock function with given fields:
func (*MockCollector) Wait ¶
func (_m *MockCollector) Wait()
Wait provides a mock function with given fields:
type MockCollector_AnyReader_Call ¶
MockCollector_AnyReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AnyReader'
func (*MockCollector_AnyReader_Call) Return ¶
func (_c *MockCollector_AnyReader_Call) Return(_a0 io.Reader) *MockCollector_AnyReader_Call
func (*MockCollector_AnyReader_Call) Run ¶
func (_c *MockCollector_AnyReader_Call) Run(run func(ctx context.Context)) *MockCollector_AnyReader_Call
func (*MockCollector_AnyReader_Call) RunAndReturn ¶
func (_c *MockCollector_AnyReader_Call) RunAndReturn(run func(context.Context) io.Reader) *MockCollector_AnyReader_Call
type MockCollector_Close_Call ¶
MockCollector_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockCollector_Close_Call) Return ¶
func (_c *MockCollector_Close_Call) Return(_a0 error) *MockCollector_Close_Call
func (*MockCollector_Close_Call) Run ¶
func (_c *MockCollector_Close_Call) Run(run func()) *MockCollector_Close_Call
func (*MockCollector_Close_Call) RunAndReturn ¶
func (_c *MockCollector_Close_Call) RunAndReturn(run func() error) *MockCollector_Close_Call
type MockCollector_Expecter ¶
type MockCollector_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCollector_Expecter) AnyReader ¶
func (_e *MockCollector_Expecter) AnyReader(ctx interface{}) *MockCollector_AnyReader_Call
AnyReader is a helper method to define mock.On call
- ctx context.Context
func (*MockCollector_Expecter) Close ¶
func (_e *MockCollector_Expecter) Close() *MockCollector_Close_Call
Close is a helper method to define mock.On call
func (*MockCollector_Expecter) LogOutput ¶
func (_e *MockCollector_Expecter) LogOutput() *MockCollector_LogOutput_Call
LogOutput is a helper method to define mock.On call
func (*MockCollector_Expecter) Start ¶
func (_e *MockCollector_Expecter) Start(stdoutPipe interface{}, stderrPipe interface{}) *MockCollector_Start_Call
Start is a helper method to define mock.On call
- stdoutPipe io.ReadCloser
- stderrPipe io.ReadCloser
func (*MockCollector_Expecter) StderrReader ¶
func (_e *MockCollector_Expecter) StderrReader(ctx interface{}) *MockCollector_StderrReader_Call
StderrReader is a helper method to define mock.On call
- ctx context.Context
func (*MockCollector_Expecter) StderrWriter ¶
func (_e *MockCollector_Expecter) StderrWriter() *MockCollector_StderrWriter_Call
StderrWriter is a helper method to define mock.On call
func (*MockCollector_Expecter) StdoutReader ¶
func (_e *MockCollector_Expecter) StdoutReader(ctx interface{}) *MockCollector_StdoutReader_Call
StdoutReader is a helper method to define mock.On call
- ctx context.Context
func (*MockCollector_Expecter) StdoutWriter ¶
func (_e *MockCollector_Expecter) StdoutWriter() *MockCollector_StdoutWriter_Call
StdoutWriter is a helper method to define mock.On call
func (*MockCollector_Expecter) Wait ¶
func (_e *MockCollector_Expecter) Wait() *MockCollector_Wait_Call
Wait is a helper method to define mock.On call
type MockCollector_LogOutput_Call ¶
MockCollector_LogOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogOutput'
func (*MockCollector_LogOutput_Call) Return ¶
func (_c *MockCollector_LogOutput_Call) Return() *MockCollector_LogOutput_Call
func (*MockCollector_LogOutput_Call) Run ¶
func (_c *MockCollector_LogOutput_Call) Run(run func()) *MockCollector_LogOutput_Call
func (*MockCollector_LogOutput_Call) RunAndReturn ¶
func (_c *MockCollector_LogOutput_Call) RunAndReturn(run func()) *MockCollector_LogOutput_Call
type MockCollector_Start_Call ¶
MockCollector_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockCollector_Start_Call) Return ¶
func (_c *MockCollector_Start_Call) Return(_a0 error) *MockCollector_Start_Call
func (*MockCollector_Start_Call) Run ¶
func (_c *MockCollector_Start_Call) Run(run func(stdoutPipe io.ReadCloser, stderrPipe io.ReadCloser)) *MockCollector_Start_Call
func (*MockCollector_Start_Call) RunAndReturn ¶
func (_c *MockCollector_Start_Call) RunAndReturn(run func(io.ReadCloser, io.ReadCloser) error) *MockCollector_Start_Call
type MockCollector_StderrReader_Call ¶
MockCollector_StderrReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StderrReader'
func (*MockCollector_StderrReader_Call) Return ¶
func (_c *MockCollector_StderrReader_Call) Return(_a0 io.Reader) *MockCollector_StderrReader_Call
func (*MockCollector_StderrReader_Call) Run ¶
func (_c *MockCollector_StderrReader_Call) Run(run func(ctx context.Context)) *MockCollector_StderrReader_Call
func (*MockCollector_StderrReader_Call) RunAndReturn ¶
func (_c *MockCollector_StderrReader_Call) RunAndReturn(run func(context.Context) io.Reader) *MockCollector_StderrReader_Call
type MockCollector_StderrWriter_Call ¶
MockCollector_StderrWriter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StderrWriter'
func (*MockCollector_StderrWriter_Call) Return ¶
func (_c *MockCollector_StderrWriter_Call) Return(_a0 io.Writer) *MockCollector_StderrWriter_Call
func (*MockCollector_StderrWriter_Call) Run ¶
func (_c *MockCollector_StderrWriter_Call) Run(run func()) *MockCollector_StderrWriter_Call
func (*MockCollector_StderrWriter_Call) RunAndReturn ¶
func (_c *MockCollector_StderrWriter_Call) RunAndReturn(run func() io.Writer) *MockCollector_StderrWriter_Call
type MockCollector_StdoutReader_Call ¶
MockCollector_StdoutReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StdoutReader'
func (*MockCollector_StdoutReader_Call) Return ¶
func (_c *MockCollector_StdoutReader_Call) Return(_a0 io.Reader) *MockCollector_StdoutReader_Call
func (*MockCollector_StdoutReader_Call) Run ¶
func (_c *MockCollector_StdoutReader_Call) Run(run func(ctx context.Context)) *MockCollector_StdoutReader_Call
func (*MockCollector_StdoutReader_Call) RunAndReturn ¶
func (_c *MockCollector_StdoutReader_Call) RunAndReturn(run func(context.Context) io.Reader) *MockCollector_StdoutReader_Call
type MockCollector_StdoutWriter_Call ¶
MockCollector_StdoutWriter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StdoutWriter'
func (*MockCollector_StdoutWriter_Call) Return ¶
func (_c *MockCollector_StdoutWriter_Call) Return(_a0 io.Writer) *MockCollector_StdoutWriter_Call
func (*MockCollector_StdoutWriter_Call) Run ¶
func (_c *MockCollector_StdoutWriter_Call) Run(run func()) *MockCollector_StdoutWriter_Call
func (*MockCollector_StdoutWriter_Call) RunAndReturn ¶
func (_c *MockCollector_StdoutWriter_Call) RunAndReturn(run func() io.Writer) *MockCollector_StdoutWriter_Call
type MockCollector_Wait_Call ¶
MockCollector_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*MockCollector_Wait_Call) Return ¶
func (_c *MockCollector_Wait_Call) Return() *MockCollector_Wait_Call
func (*MockCollector_Wait_Call) Run ¶
func (_c *MockCollector_Wait_Call) Run(run func()) *MockCollector_Wait_Call
func (*MockCollector_Wait_Call) RunAndReturn ¶
func (_c *MockCollector_Wait_Call) RunAndReturn(run func()) *MockCollector_Wait_Call
type MockMaker ¶
MockMaker is an autogenerated mock type for the Maker type
func NewMockMaker ¶
NewMockMaker creates a new instance of MockMaker. 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 (*MockMaker) EXPECT ¶
func (_m *MockMaker) EXPECT() *MockMaker_Expecter
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) MakeCollector ¶
func (_e *MockMaker_Expecter) MakeCollector(tid interface{}) *MockMaker_MakeCollector_Call
MakeCollector is a helper method to define mock.On call
- tid string
type MockMaker_MakeCollector_Call ¶
MockMaker_MakeCollector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeCollector'
func (*MockMaker_MakeCollector_Call) Return ¶
func (_c *MockMaker_MakeCollector_Call) Return(_a0 output.Collector) *MockMaker_MakeCollector_Call
func (*MockMaker_MakeCollector_Call) Run ¶
func (_c *MockMaker_MakeCollector_Call) Run(run func(tid string)) *MockMaker_MakeCollector_Call
func (*MockMaker_MakeCollector_Call) RunAndReturn ¶
func (_c *MockMaker_MakeCollector_Call) RunAndReturn(run func(string) output.Collector) *MockMaker_MakeCollector_Call