mocks

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 3 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 mockConstructorTestingTNewClient) *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.

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetMetricData

func (_m *Client) GetMetricData(ctx context.Context, params *cloudwatch.GetMetricDataInput, optFns ...func(*cloudwatch.Options)) (*cloudwatch.GetMetricDataOutput, error)

GetMetricData provides a mock function with given fields: ctx, params, optFns

func (*Client) PutMetricData

func (_m *Client) PutMetricData(ctx context.Context, params *cloudwatch.PutMetricDataInput, optFns ...func(*cloudwatch.Options)) (*cloudwatch.PutMetricDataOutput, error)

PutMetricData provides a mock function with given fields: ctx, params, optFns

type Client_Expecter

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

func (*Client_Expecter) GetMetricData

func (_e *Client_Expecter) GetMetricData(ctx interface{}, params interface{}, optFns ...interface{}) *Client_GetMetricData_Call

GetMetricData is a helper method to define mock.On call

  • ctx context.Context
  • params *cloudwatch.GetMetricDataInput
  • optFns ...func(*cloudwatch.Options)

func (*Client_Expecter) PutMetricData

func (_e *Client_Expecter) PutMetricData(ctx interface{}, params interface{}, optFns ...interface{}) *Client_PutMetricData_Call

PutMetricData is a helper method to define mock.On call

  • ctx context.Context
  • params *cloudwatch.PutMetricDataInput
  • optFns ...func(*cloudwatch.Options)

type Client_GetMetricData_Call

type Client_GetMetricData_Call struct {
	*mock.Call
}

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

func (*Client_GetMetricData_Call) Return

func (*Client_GetMetricData_Call) Run

type Client_PutMetricData_Call

type Client_PutMetricData_Call struct {
	*mock.Call
}

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

func (*Client_PutMetricData_Call) Return

func (*Client_PutMetricData_Call) Run

Jump to

Keyboard shortcuts

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