MCPcopy
hub / github.com/larksuite/cli / stubExternalProvider

Struct stubExternalProvider

cmd/auth/auth_test.go:502–502  ·  view source on GitHub ↗

stubExternalProvider is a minimal extcred.Provider that always reports an account, simulating env/sidecar mode for guard tests.

Source from the content-addressed store, hash-verified

500// stubExternalProvider is a minimal extcred.Provider that always reports an account,
501// simulating env/sidecar mode for guard tests.
502type stubExternalProvider struct{ name string }
503
504func (s *stubExternalProvider) Name() string { return s.name }
505func (s *stubExternalProvider) ResolveAccount(_ context.Context) (*extcred.Account, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected