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

Function TestNewClientFactory

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

Source from the content-addressed store, hash-verified

9)
10
11func TestNewClientFactory(t *testing.T) {
12 cfg := &config.CLIConfig{
13 AWS: config.AWSConfig{
14 Region: "us-west-2",
15 },
16 }
17
18 factory, err := NewClientFactory(cfg)
19 if err != nil {
20 t.Fatalf("Expected no error creating client factory, got %v", err)
21 }
22
23 if factory == nil {
24 t.Fatal("Expected client factory to be created")
25 }
26
27 if factory.session == nil {
28 t.Fatal("Expected session to be created")
29 }
30}
31
32func TestGetClients(t *testing.T) {
33 cfg := &config.CLIConfig{

Callers

nothing calls this directly

Calls 1

NewClientFactoryFunction · 0.85

Tested by

no test coverage detected