mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 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 Extractor

type Extractor struct {
	mock.Mock
}

Extractor is an autogenerated mock type for the Extractor type

func NewExtractor

func NewExtractor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Extractor

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

func (_m *Extractor) EXPECT() *Extractor_Expecter

func (*Extractor) Extract

Extract provides a mock function with given fields: ctx, ri

type Extractor_Expecter

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

func (*Extractor_Expecter) Extract

func (_e *Extractor_Expecter) Extract(ctx interface{}, ri interface{}) *Extractor_Extract_Call

Extract is a helper method to define mock.On call

  • ctx context.Context
  • ri *providerv1beta1.ResourceInfo

type Extractor_Extract_Call

type Extractor_Extract_Call struct {
	*mock.Call
}

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

func (*Extractor_Extract_Call) Return

func (*Extractor_Extract_Call) Run

func (*Extractor_Extract_Call) RunAndReturn

type Retriever

type Retriever struct {
	mock.Mock
}

Retriever is an autogenerated mock type for the Retriever type

func NewRetriever

func NewRetriever(t interface {
	mock.TestingT
	Cleanup(func())
}) *Retriever

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

func (_m *Retriever) EXPECT() *Retriever_Expecter

func (*Retriever) Retrieve

Retrieve provides a mock function with given fields: ctx, rID

type Retriever_Expecter

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

func (*Retriever_Expecter) Retrieve

func (_e *Retriever_Expecter) Retrieve(ctx interface{}, rID interface{}) *Retriever_Retrieve_Call

Retrieve is a helper method to define mock.On call

  • ctx context.Context
  • rID *providerv1beta1.ResourceId

type Retriever_Retrieve_Call

type Retriever_Retrieve_Call struct {
	*mock.Call
}

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

func (*Retriever_Retrieve_Call) Return

func (*Retriever_Retrieve_Call) Run

func (*Retriever_Retrieve_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳