mocks

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlobClient

type MockBlobClient struct {
	mock.Mock
}

MockBlobClient is an autogenerated mock type for the blobClient type

func NewMockBlobClient

func NewMockBlobClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBlobClient

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

func (*MockBlobClient) UploadBuffer

func (_m *MockBlobClient) UploadBuffer(_a0 context.Context, _a1 string, _a2 string, _a3 []byte) error

UploadBuffer provides a mock function with given fields: _a0, _a1, _a2, _a3

type MockBlobClient_Expecter

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

func (*MockBlobClient_Expecter) UploadBuffer

func (_e *MockBlobClient_Expecter) UploadBuffer(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *MockBlobClient_UploadBuffer_Call

UploadBuffer is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string
  • _a3 []byte

type MockBlobClient_UploadBuffer_Call

type MockBlobClient_UploadBuffer_Call struct {
	*mock.Call
}

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

func (*MockBlobClient_UploadBuffer_Call) Return

func (*MockBlobClient_UploadBuffer_Call) Run

func (*MockBlobClient_UploadBuffer_Call) RunAndReturn

type MockMarshaler

type MockMarshaler struct {
	mock.Mock
}

MockMarshaler is an autogenerated mock type for the marshaler type

func NewMockMarshaler

func NewMockMarshaler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMarshaler

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

func (_m *MockMarshaler) EXPECT() *MockMarshaler_Expecter

func (*MockMarshaler) Format

func (_m *MockMarshaler) Format() string

Format provides a mock function with given fields:

func (*MockMarshaler) MarshalLogs

func (_m *MockMarshaler) MarshalLogs(ld plog.Logs) ([]byte, error)

MarshalLogs provides a mock function with given fields: ld

func (*MockMarshaler) MarshalMetrics

func (_m *MockMarshaler) MarshalMetrics(md pmetric.Metrics) ([]byte, error)

MarshalMetrics provides a mock function with given fields: md

func (*MockMarshaler) MarshalTraces

func (_m *MockMarshaler) MarshalTraces(td ptrace.Traces) ([]byte, error)

MarshalTraces provides a mock function with given fields: td

type MockMarshaler_Expecter

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

func (*MockMarshaler_Expecter) Format

Format is a helper method to define mock.On call

func (*MockMarshaler_Expecter) MarshalLogs

func (_e *MockMarshaler_Expecter) MarshalLogs(ld interface{}) *MockMarshaler_MarshalLogs_Call

MarshalLogs is a helper method to define mock.On call

  • ld plog.Logs

func (*MockMarshaler_Expecter) MarshalMetrics

func (_e *MockMarshaler_Expecter) MarshalMetrics(md interface{}) *MockMarshaler_MarshalMetrics_Call

MarshalMetrics is a helper method to define mock.On call

  • md pmetric.Metrics

func (*MockMarshaler_Expecter) MarshalTraces

func (_e *MockMarshaler_Expecter) MarshalTraces(td interface{}) *MockMarshaler_MarshalTraces_Call

MarshalTraces is a helper method to define mock.On call

  • td ptrace.Traces

type MockMarshaler_Format_Call

type MockMarshaler_Format_Call struct {
	*mock.Call
}

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

func (*MockMarshaler_Format_Call) Return

func (*MockMarshaler_Format_Call) Run

func (*MockMarshaler_Format_Call) RunAndReturn

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

type MockMarshaler_MarshalLogs_Call

type MockMarshaler_MarshalLogs_Call struct {
	*mock.Call
}

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

func (*MockMarshaler_MarshalLogs_Call) Return

func (*MockMarshaler_MarshalLogs_Call) Run

func (*MockMarshaler_MarshalLogs_Call) RunAndReturn

type MockMarshaler_MarshalMetrics_Call

type MockMarshaler_MarshalMetrics_Call struct {
	*mock.Call
}

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

func (*MockMarshaler_MarshalMetrics_Call) Return

func (*MockMarshaler_MarshalMetrics_Call) Run

func (*MockMarshaler_MarshalMetrics_Call) RunAndReturn

type MockMarshaler_MarshalTraces_Call

type MockMarshaler_MarshalTraces_Call struct {
	*mock.Call
}

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

func (*MockMarshaler_MarshalTraces_Call) Return

func (*MockMarshaler_MarshalTraces_Call) Run

func (*MockMarshaler_MarshalTraces_Call) RunAndReturn

Jump to

Keyboard shortcuts

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