mocks

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelemClient

type TelemClient struct {
	mock.Mock
}

TelemClient is an autogenerated mock type for the TelemClient type

func NewTelemClient

func NewTelemClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *TelemClient

NewTelemClient creates a new instance of TelemClient. 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 (*TelemClient) EXPECT added in v2.13.1

func (_m *TelemClient) EXPECT() *TelemClient_Expecter

func (*TelemClient) Telem

Telem provides a mock function with given fields: ctx, in

func (*TelemClient) TelemBatch

TelemBatch provides a mock function with given fields: ctx, in

type TelemClient_Expecter added in v2.13.1

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

func (*TelemClient_Expecter) Telem added in v2.13.1

func (_e *TelemClient_Expecter) Telem(ctx interface{}, in interface{}) *TelemClient_Telem_Call

Telem is a helper method to define mock.On call

  • ctx context.Context
  • in *telem.TelemRequest

func (*TelemClient_Expecter) TelemBatch added in v2.13.1

func (_e *TelemClient_Expecter) TelemBatch(ctx interface{}, in interface{}) *TelemClient_TelemBatch_Call

TelemBatch is a helper method to define mock.On call

  • ctx context.Context
  • in *telem.TelemBatchRequest

type TelemClient_TelemBatch_Call added in v2.13.1

type TelemClient_TelemBatch_Call struct {
	*mock.Call
}

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

func (*TelemClient_TelemBatch_Call) Return added in v2.13.1

func (*TelemClient_TelemBatch_Call) Run added in v2.13.1

func (*TelemClient_TelemBatch_Call) RunAndReturn added in v2.13.1

type TelemClient_Telem_Call added in v2.13.1

type TelemClient_Telem_Call struct {
	*mock.Call
}

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

func (*TelemClient_Telem_Call) Return added in v2.13.1

func (*TelemClient_Telem_Call) Run added in v2.13.1

func (*TelemClient_Telem_Call) RunAndReturn added in v2.13.1

type TelemetryService added in v2.7.0

type TelemetryService struct {
	mock.Mock
}

TelemetryService is an autogenerated mock type for the TelemetryService type

func NewTelemetryService added in v2.7.0

func NewTelemetryService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TelemetryService

NewTelemetryService creates a new instance of TelemetryService. 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 (*TelemetryService) Close added in v2.7.0

func (_m *TelemetryService) Close() error

Close provides a mock function with given fields:

func (*TelemetryService) EXPECT added in v2.13.1

func (*TelemetryService) HealthReport added in v2.7.0

func (_m *TelemetryService) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*TelemetryService) Name added in v2.7.0

func (_m *TelemetryService) Name() string

Name provides a mock function with given fields:

func (*TelemetryService) Ready added in v2.7.0

func (_m *TelemetryService) Ready() error

Ready provides a mock function with given fields:

func (*TelemetryService) Send added in v2.7.0

func (_m *TelemetryService) Send(ctx context.Context, telemetry []byte, contractID string, telemType synchronization.TelemetryType)

Send provides a mock function with given fields: ctx, telemetry, contractID, telemType

func (*TelemetryService) Start added in v2.7.0

func (_m *TelemetryService) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type TelemetryService_Close_Call added in v2.13.1

type TelemetryService_Close_Call struct {
	*mock.Call
}

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

func (*TelemetryService_Close_Call) Return added in v2.13.1

func (*TelemetryService_Close_Call) Run added in v2.13.1

func (*TelemetryService_Close_Call) RunAndReturn added in v2.13.1

func (_c *TelemetryService_Close_Call) RunAndReturn(run func() error) *TelemetryService_Close_Call

type TelemetryService_Expecter added in v2.13.1

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

func (*TelemetryService_Expecter) Close added in v2.13.1

Close is a helper method to define mock.On call

func (*TelemetryService_Expecter) HealthReport added in v2.13.1

HealthReport is a helper method to define mock.On call

func (*TelemetryService_Expecter) Name added in v2.13.1

Name is a helper method to define mock.On call

func (*TelemetryService_Expecter) Ready added in v2.13.1

Ready is a helper method to define mock.On call

func (*TelemetryService_Expecter) Send added in v2.13.1

func (_e *TelemetryService_Expecter) Send(ctx interface{}, telemetry interface{}, contractID interface{}, telemType interface{}) *TelemetryService_Send_Call

Send is a helper method to define mock.On call

  • ctx context.Context
  • telemetry []byte
  • contractID string
  • telemType synchronization.TelemetryType

func (*TelemetryService_Expecter) Start added in v2.13.1

func (_e *TelemetryService_Expecter) Start(_a0 interface{}) *TelemetryService_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type TelemetryService_HealthReport_Call added in v2.13.1

type TelemetryService_HealthReport_Call struct {
	*mock.Call
}

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

func (*TelemetryService_HealthReport_Call) Return added in v2.13.1

func (*TelemetryService_HealthReport_Call) Run added in v2.13.1

func (*TelemetryService_HealthReport_Call) RunAndReturn added in v2.13.1

type TelemetryService_Name_Call added in v2.13.1

type TelemetryService_Name_Call struct {
	*mock.Call
}

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

func (*TelemetryService_Name_Call) Return added in v2.13.1

func (*TelemetryService_Name_Call) Run added in v2.13.1

func (*TelemetryService_Name_Call) RunAndReturn added in v2.13.1

func (_c *TelemetryService_Name_Call) RunAndReturn(run func() string) *TelemetryService_Name_Call

type TelemetryService_Ready_Call added in v2.13.1

type TelemetryService_Ready_Call struct {
	*mock.Call
}

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

func (*TelemetryService_Ready_Call) Return added in v2.13.1

func (*TelemetryService_Ready_Call) Run added in v2.13.1

func (*TelemetryService_Ready_Call) RunAndReturn added in v2.13.1

func (_c *TelemetryService_Ready_Call) RunAndReturn(run func() error) *TelemetryService_Ready_Call

type TelemetryService_Send_Call added in v2.13.1

type TelemetryService_Send_Call struct {
	*mock.Call
}

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

func (*TelemetryService_Send_Call) Return added in v2.13.1

func (*TelemetryService_Send_Call) Run added in v2.13.1

func (_c *TelemetryService_Send_Call) Run(run func(ctx context.Context, telemetry []byte, contractID string, telemType synchronization.TelemetryType)) *TelemetryService_Send_Call

func (*TelemetryService_Send_Call) RunAndReturn added in v2.13.1

type TelemetryService_Start_Call added in v2.13.1

type TelemetryService_Start_Call struct {
	*mock.Call
}

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

func (*TelemetryService_Start_Call) Return added in v2.13.1

func (*TelemetryService_Start_Call) Run added in v2.13.1

func (*TelemetryService_Start_Call) RunAndReturn added in v2.13.1

Jump to

Keyboard shortcuts

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