MCPcopy Create free account
hub / github.com/apache/pulsar-client-go / GetCode

Method GetCode

oauth2/device_code_flow_test.go:40–45  ·  view source on GitHub ↗
(audience string, additionalScopes ...string)

Source from the content-addressed store, hash-verified

38}
39
40func (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
47type MockDeviceCodeCallback struct {
48 Called bool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected