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

Function restoreOAuthCredentials

cmd/auth_test.go:153–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

151}
152
153func restoreOAuthCredentials(t *testing.T) {
154 t.Helper()
155
156 origPersonalAppKey := personalAppKey
157 origTeamAccessAppKey := teamAccessAppKey
158 origTeamManageAppKey := teamManageAppKey
159 origReadAppKey := readAppKey
160 origReadAppCredentials := readAppCredentials
161 origGenerateOAuthVerifier := generateOAuthVerifier
162 origGenerateOAuthState := generateOAuthState
163 origRefreshOAuthToken := refreshOAuthToken
164 t.Cleanup(func() {
165 personalAppKey = origPersonalAppKey
166 teamAccessAppKey = origTeamAccessAppKey
167 teamManageAppKey = origTeamManageAppKey
168 readAppKey = origReadAppKey
169 readAppCredentials = origReadAppCredentials
170 generateOAuthVerifier = origGenerateOAuthVerifier
171 generateOAuthState = origGenerateOAuthState
172 refreshOAuthToken = origRefreshOAuthToken
173 })
174}
175
176func mockOAuthAppCredentials(t *testing.T) {
177 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected