mocks

package
v0.0.0-...-e8a84d0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCS

type GCS struct {
	mock.Mock
}

GCS is an autogenerated mock type for the GCS type

func NewGCS

func NewGCS(t interface {
	mock.TestingT
	Cleanup(func())
}) *GCS

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

func (_m *GCS) EXPECT() *GCS_Expecter

func (*GCS) GetObjectMetadata

func (_m *GCS) GetObjectMetadata(ctx context.Context, bName string, oName string) (map[string]string, error)

GetObjectMetadata provides a mock function with given fields: ctx, bName, oName

func (*GCS) GetObjectReader

func (_m *GCS) GetObjectReader(ctx context.Context, bName string, oName string) (io.ReadCloser, error)

GetObjectReader provides a mock function with given fields: ctx, bName, oName

func (*GCS) ParseEvent

func (_m *GCS) ParseEvent() (string, string, error)

ParseEvent provides a mock function with given fields:

type GCS_Expecter

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

func (*GCS_Expecter) GetObjectMetadata

func (_e *GCS_Expecter) GetObjectMetadata(ctx interface{}, bName interface{}, oName interface{}) *GCS_GetObjectMetadata_Call

GetObjectMetadata is a helper method to define mock.On call

  • ctx context.Context
  • bName string
  • oName string

func (*GCS_Expecter) GetObjectReader

func (_e *GCS_Expecter) GetObjectReader(ctx interface{}, bName interface{}, oName interface{}) *GCS_GetObjectReader_Call

GetObjectReader is a helper method to define mock.On call

  • ctx context.Context
  • bName string
  • oName string

func (*GCS_Expecter) ParseEvent

func (_e *GCS_Expecter) ParseEvent() *GCS_ParseEvent_Call

ParseEvent is a helper method to define mock.On call

type GCS_GetObjectMetadata_Call

type GCS_GetObjectMetadata_Call struct {
	*mock.Call
}

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

func (*GCS_GetObjectMetadata_Call) Return

func (*GCS_GetObjectMetadata_Call) Run

func (_c *GCS_GetObjectMetadata_Call) Run(run func(ctx context.Context, bName string, oName string)) *GCS_GetObjectMetadata_Call

func (*GCS_GetObjectMetadata_Call) RunAndReturn

type GCS_GetObjectReader_Call

type GCS_GetObjectReader_Call struct {
	*mock.Call
}

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

func (*GCS_GetObjectReader_Call) Return

func (*GCS_GetObjectReader_Call) Run

func (_c *GCS_GetObjectReader_Call) Run(run func(ctx context.Context, bName string, oName string)) *GCS_GetObjectReader_Call

func (*GCS_GetObjectReader_Call) RunAndReturn

type GCS_ParseEvent_Call

type GCS_ParseEvent_Call struct {
	*mock.Call
}

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

func (*GCS_ParseEvent_Call) Return

func (_c *GCS_ParseEvent_Call) Return(_a0 string, _a1 string, _a2 error) *GCS_ParseEvent_Call

func (*GCS_ParseEvent_Call) Run

func (_c *GCS_ParseEvent_Call) Run(run func()) *GCS_ParseEvent_Call

func (*GCS_ParseEvent_Call) RunAndReturn

func (_c *GCS_ParseEvent_Call) RunAndReturn(run func() (string, string, error)) *GCS_ParseEvent_Call

Jump to

Keyboard shortcuts

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