(audience string, additionalScopes ...string)
| 38 | } |
| 39 | |
| 40 | func (cp *MockDeviceCodeProvider) GetCode(audience string, additionalScopes ...string) (*DeviceCodeResult, error) { |
| 41 | cp.Called = true |
| 42 | cp.CalledWithAudience = audience |
| 43 | cp.CalledWithAdditionalScopes = additionalScopes |
| 44 | return cp.DeviceCodeResult, cp.ReturnsError |
| 45 | } |
| 46 | |
| 47 | type MockDeviceCodeCallback struct { |
| 48 | Called bool |
nothing calls this directly
no outgoing calls
no test coverage detected