(t *testing.T, client filesClient)
| 18 | ) |
| 19 | |
| 20 | func stubFilesClient(t *testing.T, client filesClient) { |
| 21 | t.Helper() |
| 22 | |
| 23 | origNew := filesNewFunc |
| 24 | filesNewFunc = func(_ dropbox.Config) filesClient { return client } |
| 25 | t.Cleanup(func() { filesNewFunc = origNew }) |
| 26 | } |
| 27 | |
| 28 | func captureStderr(t *testing.T, fn func()) string { |
| 29 | t.Helper() |
no outgoing calls
no test coverage detected