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

Function setCurrentAuthContextForTest

cmd/account_test.go:196–204  ·  view source on GitHub ↗
(t *testing.T, ctx *authContext)

Source from the content-addressed store, hash-verified

194}
195
196func setCurrentAuthContextForTest(t *testing.T, ctx *authContext) {
197 t.Helper()
198
199 orig := currentAuthContext
200 currentAuthContext = ctx
201 t.Cleanup(func() {
202 currentAuthContext = orig
203 })
204}
205
206type accountJSONOutput struct {
207 Input accountInput `json:"input"`

Calls

no outgoing calls

Tested by

no test coverage detected