testutils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAWSConfigLoader

type MockAWSConfigLoader struct {
	LoadDefaultConfigFunc func(
		ctx context.Context,
		optFns ...func(*config.LoadOptions) error,
	) (aws.Config, error)
}

MockAWSConfigLoader is a mock implementation of the AWSConfigLoader interface used for testing.

func (*MockAWSConfigLoader) LoadDefaultConfig

func (m *MockAWSConfigLoader) LoadDefaultConfig(
	ctx context.Context,
	optFns ...func(*config.LoadOptions) error,
) (aws.Config, error)

LoadDefaultConfig delegates to LoadDefaultConfigFunc when set. Otherwise it resolves the given load options in memory the same way the real loader does (e.g. region from config.WithRegion), without touching the filesystem, environment or network.

Jump to

Keyboard shortcuts

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