| 30 | ) |
| 31 | |
| 32 | type MockDeviceCodeProvider struct { |
| 33 | Called bool |
| 34 | CalledWithAudience string |
| 35 | CalledWithAdditionalScopes []string |
| 36 | DeviceCodeResult *DeviceCodeResult |
| 37 | ReturnsError error |
| 38 | } |
| 39 | |
| 40 | func (cp *MockDeviceCodeProvider) GetCode(audience string, additionalScopes ...string) (*DeviceCodeResult, error) { |
| 41 | cp.Called = true |
nothing calls this directly
no outgoing calls
no test coverage detected