(t *testing.T)
| 18 | ) |
| 19 | |
| 20 | func createMockSession(t *testing.T) *session.Session { |
| 21 | sessionOnce.Do(func() { |
| 22 | var err error |
| 23 | testSession, err = session.New() |
| 24 | if err != nil { |
| 25 | t.Fatalf("Failed to create session: %v", err) |
| 26 | } |
| 27 | }) |
| 28 | return testSession |
| 29 | } |
| 30 | |
| 31 | func TestNewRestAPI(t *testing.T) { |
| 32 | s := createMockSession(t) |
no test coverage detected