(t *testing.T)
| 151 | } |
| 152 | |
| 153 | func 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 | |
| 176 | func mockOAuthAppCredentials(t *testing.T) { |
| 177 | t.Helper() |
no outgoing calls
no test coverage detected