logging

package
v3.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: Apache-2.0, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLog

type MockLog struct {
	mock.Mock
}

MockLog is an autogenerated mock type for the Log type

func NewMockLog

func NewMockLog(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLog

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) Close

func (_mock *MockLog) Close(c context.Context, stepID int64) error

Close provides a mock function for the type MockLog

func (*MockLog) EXPECT

func (_m *MockLog) EXPECT() *MockLog_Expecter

func (*MockLog) Open

func (_mock *MockLog) Open(c context.Context, stepID int64) error

Open provides a mock function for the type MockLog

func (*MockLog) Tail

func (_mock *MockLog) Tail(c context.Context, stepID int64, handler logging.LogChan) error

Tail provides a mock function for the type MockLog

func (*MockLog) Write

func (_mock *MockLog) Write(c context.Context, stepID int64, entries []*model.LogEntry) error

Write provides a mock function for the type MockLog

type MockLog_Close_Call

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

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

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

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

Jump to

Keyboard shortcuts

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