Documentation
¶
Index ¶
- func ConnectToLocalStack(t *testing.T, cfg LocalStackConfig) *dynamodb.Client
- func ConnectToLocalStackWithRetry(t *testing.T, cfg LocalStackConfig, maxRetries int) *dynamodb.Client
- func TestBaseSetNumber(t *testing.T)
- func TestContext(timeout time.Duration) (context.Context, context.CancelFunc)
- func WaitForLocalStack(t *testing.T, cfg LocalStackConfig, maxWaitTime time.Duration)
- type GeneratedPackage
- type LocalStackConfig
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 ¶
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 ¶
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 ¶
LocalStackConfig contains configuration for connecting to LocalStack
func DefaultLocalStackConfig ¶
func DefaultLocalStackConfig() LocalStackConfig
DefaultLocalStackConfig returns default settings for LocalStack