stdlambdamock

package
v0.0.146 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 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 MockLambda

type MockLambda struct {
	mock.Mock
}

MockLambda is an autogenerated mock type for the Lambda type

func NewMockLambda

func NewMockLambda(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLambda

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

func (_m *MockLambda) EXPECT() *MockLambda_Expecter

func (*MockLambda) Invoke

func (_m *MockLambda) Invoke(ctx context.Context, params *lambda.InvokeInput, optFns ...func(*lambda.Options)) (*lambda.InvokeOutput, error)

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

type MockLambda_Expecter

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

func (*MockLambda_Expecter) Invoke

func (_e *MockLambda_Expecter) Invoke(ctx interface{}, params interface{}, optFns ...interface{}) *MockLambda_Invoke_Call

Invoke is a helper method to define mock.On call

  • ctx context.Context
  • params *lambda.InvokeInput
  • optFns ...func(*lambda.Options)

type MockLambda_Invoke_Call

type MockLambda_Invoke_Call struct {
	*mock.Call
}

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

func (*MockLambda_Invoke_Call) Return

func (*MockLambda_Invoke_Call) Run

func (_c *MockLambda_Invoke_Call) Run(run func(ctx context.Context, params *lambda.InvokeInput, optFns ...func(*lambda.Options))) *MockLambda_Invoke_Call

func (*MockLambda_Invoke_Call) RunAndReturn

Jump to

Keyboard shortcuts

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