mocks

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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 Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetResources

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

type Client_Expecter

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

func (*Client_Expecter) GetResources

func (_e *Client_Expecter) GetResources(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Client_GetResources_Call

GetResources is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *resourcegroupstaggingapi.GetResourcesInput
  • _a2 ...func(*resourcegroupstaggingapi.Options)

type Client_GetResources_Call

type Client_GetResources_Call struct {
	*mock.Call
}

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

func (*Client_GetResources_Call) Return

func (*Client_GetResources_Call) Run

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) GetResources

func (_m *Service) GetResources(ctx context.Context, filter resourcegroupstaggingapi.Filter) ([]string, error)

GetResources provides a mock function with given fields: ctx, filter

type Service_Expecter

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

func (*Service_Expecter) GetResources

func (_e *Service_Expecter) GetResources(ctx interface{}, filter interface{}) *Service_GetResources_Call

GetResources is a helper method to define mock.On call

  • ctx context.Context
  • filter resourcegroupstaggingapi.Filter

type Service_GetResources_Call

type Service_GetResources_Call struct {
	*mock.Call
}

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

func (*Service_GetResources_Call) Return

func (*Service_GetResources_Call) Run

func (*Service_GetResources_Call) RunAndReturn

Jump to

Keyboard shortcuts

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