(_ context.Context, audience string)
| 308 | } |
| 309 | |
| 310 | func (t *testAPI) GetDeviceCode(_ context.Context, audience string) (api.State, error) { |
| 311 | if t.getDeviceToken != nil { |
| 312 | return t.getDeviceToken(audience) |
| 313 | } |
| 314 | return api.State{}, nil |
| 315 | } |
| 316 | |
| 317 | func (t *testAPI) WaitForDeviceToken(_ context.Context, state api.State) (api.TokenResponse, error) { |
| 318 | if t.waitForDeviceToken != nil { |
nothing calls this directly
no test coverage detected