runtime

package
v0.0.1 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 MockData

type MockData struct {
	mock.Mock
}

MockData is an autogenerated mock type for the Data type

func NewMockData

func NewMockData(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockData

NewMockData creates a new instance of MockData. 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 (*MockData) EXPECT

func (_m *MockData) EXPECT() *MockData_Expecter

func (*MockData) Load

func (_m *MockData) Load(key string) (interface{}, bool)

Load provides a mock function with given fields: key

func (*MockData) Store

func (_m *MockData) Store(key string, value interface{}) error

Store provides a mock function with given fields: key, value

type MockData_Expecter

type MockData_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockData_Expecter) Load

func (_e *MockData_Expecter) Load(key interface{}) *MockData_Load_Call

Load is a helper method to define mock.On call

  • key string

func (*MockData_Expecter) Store

func (_e *MockData_Expecter) Store(key interface{}, value interface{}) *MockData_Store_Call

Store is a helper method to define mock.On call

  • key string
  • value interface{}

type MockData_Load_Call

type MockData_Load_Call struct {
	*mock.Call
}

MockData_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'

func (*MockData_Load_Call) Return

func (_c *MockData_Load_Call) Return(_a0 interface{}, _a1 bool) *MockData_Load_Call

func (*MockData_Load_Call) Run

func (_c *MockData_Load_Call) Run(run func(key string)) *MockData_Load_Call

func (*MockData_Load_Call) RunAndReturn

func (_c *MockData_Load_Call) RunAndReturn(run func(string) (interface{}, bool)) *MockData_Load_Call

type MockData_Store_Call

type MockData_Store_Call struct {
	*mock.Call
}

MockData_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'

func (*MockData_Store_Call) Return

func (*MockData_Store_Call) Run

func (_c *MockData_Store_Call) Run(run func(key string, value interface{})) *MockData_Store_Call

func (*MockData_Store_Call) RunAndReturn

func (_c *MockData_Store_Call) RunAndReturn(run func(string, interface{}) error) *MockData_Store_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) MakeBackgroundContext

func (_m *MockMaker) MakeBackgroundContext() context.Context

MakeBackgroundContext provides a mock function with given fields:

func (*MockMaker) MakeContextWithTimeout

func (_m *MockMaker) MakeContextWithTimeout(ctx context.Context, timeout time.Duration) (context.Context, context.CancelFunc)

MakeContextWithTimeout provides a mock function with given fields: ctx, timeout

func (*MockMaker) MakeData

func (_m *MockMaker) MakeData() runtime.Data

MakeData provides a mock function with given fields:

type MockMaker_Expecter

type MockMaker_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockMaker_Expecter) MakeBackgroundContext

func (_e *MockMaker_Expecter) MakeBackgroundContext() *MockMaker_MakeBackgroundContext_Call

MakeBackgroundContext is a helper method to define mock.On call

func (*MockMaker_Expecter) MakeContextWithTimeout

func (_e *MockMaker_Expecter) MakeContextWithTimeout(ctx interface{}, timeout interface{}) *MockMaker_MakeContextWithTimeout_Call

MakeContextWithTimeout is a helper method to define mock.On call

  • ctx context.Context
  • timeout time.Duration

func (*MockMaker_Expecter) MakeData

MakeData is a helper method to define mock.On call

type MockMaker_MakeBackgroundContext_Call

type MockMaker_MakeBackgroundContext_Call struct {
	*mock.Call
}

MockMaker_MakeBackgroundContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeBackgroundContext'

func (*MockMaker_MakeBackgroundContext_Call) Return

func (*MockMaker_MakeBackgroundContext_Call) Run

func (*MockMaker_MakeBackgroundContext_Call) RunAndReturn

type MockMaker_MakeContextWithTimeout_Call

type MockMaker_MakeContextWithTimeout_Call struct {
	*mock.Call
}

MockMaker_MakeContextWithTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeContextWithTimeout'

func (*MockMaker_MakeContextWithTimeout_Call) Return

func (*MockMaker_MakeContextWithTimeout_Call) Run

func (*MockMaker_MakeContextWithTimeout_Call) RunAndReturn

type MockMaker_MakeData_Call

type MockMaker_MakeData_Call struct {
	*mock.Call
}

MockMaker_MakeData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeData'

func (*MockMaker_MakeData_Call) Return

func (*MockMaker_MakeData_Call) Run

func (_c *MockMaker_MakeData_Call) Run(run func()) *MockMaker_MakeData_Call

func (*MockMaker_MakeData_Call) RunAndReturn

func (_c *MockMaker_MakeData_Call) RunAndReturn(run func() runtime.Data) *MockMaker_MakeData_Call

Jump to

Keyboard shortcuts

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