(t *testing.T, a any)
| 202 | } |
| 203 | |
| 204 | func setPromptResponse(t *testing.T, a any) { |
| 205 | old := defaultPrompt |
| 206 | t.Cleanup(func() { defaultPrompt = old }) |
| 207 | defaultPrompt = func(string) (any, error) { return a, nil } |
| 208 | } |
no outgoing calls
no test coverage detected