newTestAPIWithUpdateEnv creates a new API with an optional updateEnv hook for testing environment injection.
(t *testing.T, updateEnv func([]string) ([]string, error))
| 124 | // newTestAPIWithUpdateEnv creates a new API with an optional |
| 125 | // updateEnv hook for testing environment injection. |
| 126 | func newTestAPIWithUpdateEnv(t *testing.T, updateEnv func([]string) ([]string, error)) http.Handler { |
| 127 | t.Helper() |
| 128 | return newTestAPIWithOptions(t, updateEnv, nil) |
| 129 | } |
| 130 | |
| 131 | // newTestAPIWithOptions creates a new API with optional |
| 132 | // updateEnv and workingDir hooks. |
no test coverage detected