(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func 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 | |
| 32 | func TestGetClients(t *testing.T) { |
| 33 | cfg := &config.CLIConfig{ |
nothing calls this directly
no test coverage detected