testing

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LambdaStub

type LambdaStub struct {
	Request  lambda.Request  `json:"requests"`
	Response lambda.Response `json:"response"`
}

type LambdaStubs

type LambdaStubs map[string][]LambdaStub

func DefaultLambdaStubs

func DefaultLambdaStubs() LambdaStubs

func NewLambdaStubs

func NewLambdaStubs(yamlData []byte) LambdaStubs

func (LambdaStubs) CanInvoke

func (l LambdaStubs) CanInvoke(_ context.Context, fnRef lambda.FnRef) error

func (LambdaStubs) Invoke

func (l LambdaStubs) Invoke(_ context.Context, fnRef lambda.FnRef, request *lambda.Request) (*lambda.Response, error)

Directories

Path Synopsis
Package testcontext provides a factory to create a simple context.Context with logger.
Package testcontext provides a factory to create a simple context.Context with logger.
Package testlogr provides a logger for testing.
Package testlogr provides a logger for testing.

Jump to

Keyboard shortcuts

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