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

Function stubUsersClient

cmd/users_test.go:50–56  ·  view source on GitHub ↗
(t *testing.T, client usersClient)

Source from the content-addressed store, hash-verified

48}
49
50func stubUsersClient(t *testing.T, client usersClient) {
51 t.Helper()
52
53 origNew := usersNewFunc
54 usersNewFunc = func(_ dropbox.Config) usersClient { return client }
55 t.Cleanup(func() { usersNewFunc = origNew })
56}

Calls

no outgoing calls

Tested by

no test coverage detected