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

Struct MockDeviceCodeProvider

oauth2/device_code_flow_test.go:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30)
31
32type MockDeviceCodeProvider struct {
33 Called bool
34 CalledWithAudience string
35 CalledWithAdditionalScopes []string
36 DeviceCodeResult *DeviceCodeResult
37 ReturnsError error
38}
39
40func (cp *MockDeviceCodeProvider) GetCode(audience string, additionalScopes ...string) (*DeviceCodeResult, error) {
41 cp.Called = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected