mocks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t mockConstructorTestingTNewAPI) *API

NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*API) EXPECT

func (_m *API) EXPECT() *API_Expecter

func (*API) Ingest

func (_m *API) Ingest(ctx context.Context, clusterName string, runID string) error

Ingest provides a mock function with given fields: ctx, clusterName, runID

func (*API) Notify

func (_m *API) Notify(ctx context.Context, clusterName string, runID string) error

Notify provides a mock function with given fields: ctx, clusterName, runID

type API_Expecter

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

func (*API_Expecter) Ingest

func (_e *API_Expecter) Ingest(ctx interface{}, clusterName interface{}, runID interface{}) *API_Ingest_Call

Ingest is a helper method to define mock.On call

  • ctx context.Context
  • clusterName string
  • runID string

func (*API_Expecter) Notify

func (_e *API_Expecter) Notify(ctx interface{}, clusterName interface{}, runID interface{}) *API_Notify_Call

Notify is a helper method to define mock.On call

  • ctx context.Context
  • clusterName string
  • runID string

type API_Ingest_Call

type API_Ingest_Call struct {
	*mock.Call
}

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

func (*API_Ingest_Call) Return

func (_c *API_Ingest_Call) Return(_a0 error) *API_Ingest_Call

func (*API_Ingest_Call) Run

func (_c *API_Ingest_Call) Run(run func(ctx context.Context, clusterName string, runID string)) *API_Ingest_Call

func (*API_Ingest_Call) RunAndReturn

func (_c *API_Ingest_Call) RunAndReturn(run func(context.Context, string, string) error) *API_Ingest_Call

type API_Notify_Call

type API_Notify_Call struct {
	*mock.Call
}

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

func (*API_Notify_Call) Return

func (_c *API_Notify_Call) Return(_a0 error) *API_Notify_Call

func (*API_Notify_Call) Run

func (_c *API_Notify_Call) Run(run func(ctx context.Context, clusterName string, runID string)) *API_Notify_Call

func (*API_Notify_Call) RunAndReturn

func (_c *API_Notify_Call) RunAndReturn(run func(context.Context, string, string) error) *API_Notify_Call

type API_isAlreadyIngestedInGraph_Call

type API_isAlreadyIngestedInGraph_Call struct {
	*mock.Call
}

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

func (*API_isAlreadyIngestedInGraph_Call) Return

func (*API_isAlreadyIngestedInGraph_Call) Run

func (*API_isAlreadyIngestedInGraph_Call) RunAndReturn

Jump to

Keyboard shortcuts

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