output

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCollector

type MockCollector struct {
	mock.Mock
}

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

type MockCollector_AnyReader_Call struct {
	*mock.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 (*MockCollector_AnyReader_Call) Run

func (*MockCollector_AnyReader_Call) RunAndReturn

type MockCollector_Close_Call

type MockCollector_Close_Call struct {
	*mock.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 (*MockCollector_Close_Call) Run

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

Close is a helper method to define mock.On call

func (*MockCollector_Expecter) LogOutput

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

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

StdoutWriter is a helper method to define mock.On call

func (*MockCollector_Expecter) Wait

Wait is a helper method to define mock.On call

type MockCollector_LogOutput_Call

type MockCollector_LogOutput_Call struct {
	*mock.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 (*MockCollector_LogOutput_Call) Run

func (*MockCollector_LogOutput_Call) RunAndReturn

func (_c *MockCollector_LogOutput_Call) RunAndReturn(run func()) *MockCollector_LogOutput_Call

type MockCollector_Start_Call

type MockCollector_Start_Call struct {
	*mock.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 (*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

type MockCollector_StderrReader_Call

type MockCollector_StderrReader_Call struct {
	*mock.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 (*MockCollector_StderrReader_Call) Run

func (*MockCollector_StderrReader_Call) RunAndReturn

type MockCollector_StderrWriter_Call

type MockCollector_StderrWriter_Call struct {
	*mock.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 (*MockCollector_StderrWriter_Call) Run

func (*MockCollector_StderrWriter_Call) RunAndReturn

type MockCollector_StdoutReader_Call

type MockCollector_StdoutReader_Call struct {
	*mock.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 (*MockCollector_StdoutReader_Call) Run

func (*MockCollector_StdoutReader_Call) RunAndReturn

type MockCollector_StdoutWriter_Call

type MockCollector_StdoutWriter_Call struct {
	*mock.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 (*MockCollector_StdoutWriter_Call) Run

func (*MockCollector_StdoutWriter_Call) RunAndReturn

type MockCollector_Wait_Call

type MockCollector_Wait_Call struct {
	*mock.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 (*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

type MockMaker struct {
	mock.Mock
}

MockMaker is an autogenerated mock type for the Maker type

func NewMockMaker

func NewMockMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMaker

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

func (*MockMaker) MakeCollector

func (_m *MockMaker) MakeCollector(tid string) output.Collector

MakeCollector provides a mock function with given fields: tid

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

type MockMaker_MakeCollector_Call struct {
	*mock.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 (*MockMaker_MakeCollector_Call) Run

func (*MockMaker_MakeCollector_Call) RunAndReturn

Jump to

Keyboard shortcuts

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