newTestAPI creates a new API with a test logger and default execer, returning the handler and API.
(t *testing.T)
| 117 | // newTestAPI creates a new API with a test logger and default |
| 118 | // execer, returning the handler and API. |
| 119 | func newTestAPI(t *testing.T) http.Handler { |
| 120 | t.Helper() |
| 121 | return newTestAPIWithOptions(t, nil, nil) |
| 122 | } |
| 123 | |
| 124 | // newTestAPIWithUpdateEnv creates a new API with an optional |
| 125 | // updateEnv hook for testing environment injection. |
no test coverage detected