MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / TestGetRegion

Function TestGetRegion

internal/aws/clients_test.go:64–80  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestGetRegion(t *testing.T) {
65 cfg := &config.CLIConfig{
66 AWS: config.AWSConfig{
67 Region: "eu-west-1",
68 },
69 }
70
71 factory, err := NewClientFactory(cfg)
72 if err != nil {
73 t.Fatalf("Failed to create client factory: %v", err)
74 }
75
76 region := factory.GetRegion()
77 if region != "eu-west-1" {
78 t.Errorf("Expected region eu-west-1, got %s", region)
79 }
80}
81
82func TestWaitForOperation(t *testing.T) {
83 ctx := context.Background()

Callers

nothing calls this directly

Calls 2

GetRegionMethod · 0.95
NewClientFactoryFunction · 0.85

Tested by

no test coverage detected