mocks

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 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 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) CreateTopic

func (_m *Client) CreateTopic(ctx context.Context, params *sns.CreateTopicInput, optFns ...func(*sns.Options)) (*sns.CreateTopicOutput, error)

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

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetSubscriptionAttributes

func (_m *Client) GetSubscriptionAttributes(ctx context.Context, params *sns.GetSubscriptionAttributesInput, optFns ...func(*sns.Options)) (*sns.GetSubscriptionAttributesOutput, error)

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

func (*Client) ListSubscriptionsByTopic

func (_m *Client) ListSubscriptionsByTopic(ctx context.Context, params *sns.ListSubscriptionsByTopicInput, optFns ...func(*sns.Options)) (*sns.ListSubscriptionsByTopicOutput, error)

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

func (*Client) Publish

func (_m *Client) Publish(ctx context.Context, params *sns.PublishInput, optFns ...func(*sns.Options)) (*sns.PublishOutput, error)

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

func (*Client) PublishBatch

func (_m *Client) PublishBatch(ctx context.Context, input *sns.PublishBatchInput, optFns ...func(*sns.Options)) (*sns.PublishBatchOutput, error)

PublishBatch provides a mock function with given fields: ctx, input, optFns

func (*Client) Subscribe

func (_m *Client) Subscribe(ctx context.Context, params *sns.SubscribeInput, optFns ...func(*sns.Options)) (*sns.SubscribeOutput, error)

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

func (*Client) Unsubscribe

func (_m *Client) Unsubscribe(ctx context.Context, params *sns.UnsubscribeInput, optFns ...func(*sns.Options)) (*sns.UnsubscribeOutput, error)

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

type Client_CreateTopic_Call

type Client_CreateTopic_Call struct {
	*mock.Call
}

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

func (*Client_CreateTopic_Call) Return

func (*Client_CreateTopic_Call) Run

func (_c *Client_CreateTopic_Call) Run(run func(ctx context.Context, params *sns.CreateTopicInput, optFns ...func(*sns.Options))) *Client_CreateTopic_Call

func (*Client_CreateTopic_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) CreateTopic

func (_e *Client_Expecter) CreateTopic(ctx interface{}, params interface{}, optFns ...interface{}) *Client_CreateTopic_Call

CreateTopic is a helper method to define mock.On call

  • ctx context.Context
  • params *sns.CreateTopicInput
  • optFns ...func(*sns.Options)

func (*Client_Expecter) GetSubscriptionAttributes

func (_e *Client_Expecter) GetSubscriptionAttributes(ctx interface{}, params interface{}, optFns ...interface{}) *Client_GetSubscriptionAttributes_Call

GetSubscriptionAttributes is a helper method to define mock.On call

  • ctx context.Context
  • params *sns.GetSubscriptionAttributesInput
  • optFns ...func(*sns.Options)

func (*Client_Expecter) ListSubscriptionsByTopic

func (_e *Client_Expecter) ListSubscriptionsByTopic(ctx interface{}, params interface{}, optFns ...interface{}) *Client_ListSubscriptionsByTopic_Call

ListSubscriptionsByTopic is a helper method to define mock.On call

  • ctx context.Context
  • params *sns.ListSubscriptionsByTopicInput
  • optFns ...func(*sns.Options)

func (*Client_Expecter) Publish

func (_e *Client_Expecter) Publish(ctx interface{}, params interface{}, optFns ...interface{}) *Client_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • params *sns.PublishInput
  • optFns ...func(*sns.Options)

func (*Client_Expecter) PublishBatch

func (_e *Client_Expecter) PublishBatch(ctx interface{}, input interface{}, optFns ...interface{}) *Client_PublishBatch_Call

PublishBatch is a helper method to define mock.On call

  • ctx context.Context
  • input *sns.PublishBatchInput
  • optFns ...func(*sns.Options)

func (*Client_Expecter) Subscribe

func (_e *Client_Expecter) Subscribe(ctx interface{}, params interface{}, optFns ...interface{}) *Client_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • ctx context.Context
  • params *sns.SubscribeInput
  • optFns ...func(*sns.Options)

func (*Client_Expecter) Unsubscribe

func (_e *Client_Expecter) Unsubscribe(ctx interface{}, params interface{}, optFns ...interface{}) *Client_Unsubscribe_Call

Unsubscribe is a helper method to define mock.On call

  • ctx context.Context
  • params *sns.UnsubscribeInput
  • optFns ...func(*sns.Options)

type Client_GetSubscriptionAttributes_Call

type Client_GetSubscriptionAttributes_Call struct {
	*mock.Call
}

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

func (*Client_GetSubscriptionAttributes_Call) Return

func (*Client_GetSubscriptionAttributes_Call) Run

type Client_ListSubscriptionsByTopic_Call

type Client_ListSubscriptionsByTopic_Call struct {
	*mock.Call
}

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

func (*Client_ListSubscriptionsByTopic_Call) Return

func (*Client_ListSubscriptionsByTopic_Call) Run

type Client_PublishBatch_Call

type Client_PublishBatch_Call struct {
	*mock.Call
}

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

func (*Client_PublishBatch_Call) Return

func (*Client_PublishBatch_Call) Run

func (_c *Client_PublishBatch_Call) Run(run func(ctx context.Context, input *sns.PublishBatchInput, optFns ...func(*sns.Options))) *Client_PublishBatch_Call

func (*Client_PublishBatch_Call) RunAndReturn

type Client_Publish_Call

type Client_Publish_Call struct {
	*mock.Call
}

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

func (*Client_Publish_Call) Return

func (*Client_Publish_Call) Run

func (_c *Client_Publish_Call) Run(run func(ctx context.Context, params *sns.PublishInput, optFns ...func(*sns.Options))) *Client_Publish_Call

func (*Client_Publish_Call) RunAndReturn

type Client_Subscribe_Call

type Client_Subscribe_Call struct {
	*mock.Call
}

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

func (*Client_Subscribe_Call) Return

func (*Client_Subscribe_Call) Run

func (_c *Client_Subscribe_Call) Run(run func(ctx context.Context, params *sns.SubscribeInput, optFns ...func(*sns.Options))) *Client_Subscribe_Call

func (*Client_Subscribe_Call) RunAndReturn

type Client_Unsubscribe_Call

type Client_Unsubscribe_Call struct {
	*mock.Call
}

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

func (*Client_Unsubscribe_Call) Return

func (*Client_Unsubscribe_Call) Run

func (_c *Client_Unsubscribe_Call) Run(run func(ctx context.Context, params *sns.UnsubscribeInput, optFns ...func(*sns.Options))) *Client_Unsubscribe_Call

func (*Client_Unsubscribe_Call) RunAndReturn

type Topic

type Topic struct {
	mock.Mock
}

Topic is an autogenerated mock type for the Topic type

func NewTopic

func NewTopic(t interface {
	mock.TestingT
	Cleanup(func())
}) *Topic

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

func (_m *Topic) EXPECT() *Topic_Expecter

func (*Topic) Publish

func (_m *Topic) Publish(ctx context.Context, msg string, attributes ...map[string]string) error

Publish provides a mock function with given fields: ctx, msg, attributes

func (*Topic) PublishBatch

func (_m *Topic) PublishBatch(ctx context.Context, messages []string, attributes []map[string]string) error

PublishBatch provides a mock function with given fields: ctx, messages, attributes

func (*Topic) SubscribeSqs

func (_m *Topic) SubscribeSqs(ctx context.Context, queueArn string, attributes map[string]string) error

SubscribeSqs provides a mock function with given fields: ctx, queueArn, attributes

type Topic_Expecter

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

func (*Topic_Expecter) Publish

func (_e *Topic_Expecter) Publish(ctx interface{}, msg interface{}, attributes ...interface{}) *Topic_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • msg string
  • attributes ...map[string]string

func (*Topic_Expecter) PublishBatch

func (_e *Topic_Expecter) PublishBatch(ctx interface{}, messages interface{}, attributes interface{}) *Topic_PublishBatch_Call

PublishBatch is a helper method to define mock.On call

  • ctx context.Context
  • messages []string
  • attributes []map[string]string

func (*Topic_Expecter) SubscribeSqs

func (_e *Topic_Expecter) SubscribeSqs(ctx interface{}, queueArn interface{}, attributes interface{}) *Topic_SubscribeSqs_Call

SubscribeSqs is a helper method to define mock.On call

  • ctx context.Context
  • queueArn string
  • attributes map[string]string

type Topic_PublishBatch_Call

type Topic_PublishBatch_Call struct {
	*mock.Call
}

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

func (*Topic_PublishBatch_Call) Return

func (*Topic_PublishBatch_Call) Run

func (_c *Topic_PublishBatch_Call) Run(run func(ctx context.Context, messages []string, attributes []map[string]string)) *Topic_PublishBatch_Call

func (*Topic_PublishBatch_Call) RunAndReturn

type Topic_Publish_Call

type Topic_Publish_Call struct {
	*mock.Call
}

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

func (*Topic_Publish_Call) Return

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

func (*Topic_Publish_Call) Run

func (_c *Topic_Publish_Call) Run(run func(ctx context.Context, msg string, attributes ...map[string]string)) *Topic_Publish_Call

func (*Topic_Publish_Call) RunAndReturn

func (_c *Topic_Publish_Call) RunAndReturn(run func(context.Context, string, ...map[string]string) error) *Topic_Publish_Call

type Topic_SubscribeSqs_Call

type Topic_SubscribeSqs_Call struct {
	*mock.Call
}

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

func (*Topic_SubscribeSqs_Call) Return

func (*Topic_SubscribeSqs_Call) Run

func (_c *Topic_SubscribeSqs_Call) Run(run func(ctx context.Context, queueArn string, attributes map[string]string)) *Topic_SubscribeSqs_Call

func (*Topic_SubscribeSqs_Call) RunAndReturn

Jump to

Keyboard shortcuts

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