localstack

package module
v0.0.0-...-282380c Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToLocalStack

func ConnectToLocalStack(t *testing.T, cfg LocalStackConfig) *dynamodb.Client

ConnectToLocalStack creates a connection to LocalStack DynamoDB

func ConnectToLocalStackWithRetry

func ConnectToLocalStackWithRetry(t *testing.T, cfg LocalStackConfig, maxRetries int) *dynamodb.Client

ConnectToLocalStackWithRetry creates a connection to LocalStack DynamoDB with retry attempts

func TestBaseSetNumber

func TestBaseSetNumber(t *testing.T)

TestBaseSetNumber focuses on Number Set (NS) type operations and functionality. This test validates number set specific features without other data types.

Test Coverage: - Number Set CRUD operations - Number Set marshaling/unmarshaling - Set operations (AddToSet, RemoveFromSet) - Set-specific filters (Contains, NotContains) - Set operations in Query and Scan - Edge cases (empty sets, large numbers, negative numbers)

Schema: base-set-number__all.json - Table: "base-set-number-all" - Hash Key: user_id (S) - Range Key: session_id (S) - Common: scores (NS), ratings (NS)

func TestContext

func TestContext(timeout time.Duration) (context.Context, context.CancelFunc)

TestContext creates a context with timeout for tests

func WaitForLocalStack

func WaitForLocalStack(t *testing.T, cfg LocalStackConfig, maxWaitTime time.Duration)

WaitForLocalStack waits until LocalStack becomes available

Types

type GeneratedPackage

type GeneratedPackage struct {
	Name string // Package name (e.g., "test_blog_posts")
	Path string // Package path (e.g., "./generated/test_blog_posts")
}

GeneratedPackage contains information about a generated package

func GetGeneratedPackages

func GetGeneratedPackages() []GeneratedPackage

GetGeneratedPackages returns a list of all generated packages for testing

type LocalStackConfig

type LocalStackConfig struct {
	Endpoint string
	Region   string
	Timeout  time.Duration
}

LocalStackConfig contains configuration for connecting to LocalStack

func DefaultLocalStackConfig

func DefaultLocalStackConfig() LocalStackConfig

DefaultLocalStackConfig returns default settings for LocalStack

Jump to

Keyboard shortcuts

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