MCPcopy Create free account
hub / github.com/dropbox/dbxcli / stubFilesClient

Function stubFilesClient

cmd/cp_test.go:20–26  ·  view source on GitHub ↗
(t *testing.T, client filesClient)

Source from the content-addressed store, hash-verified

18)
19
20func 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
28func captureStderr(t *testing.T, fn func()) string {
29 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected