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

Struct stubExtProvider

internal/cmdutil/factory_test.go:402–406  ·  view source on GitHub ↗

stubExtProvider is a minimal extcred.Provider for testing external-provider guards.

Source from the content-addressed store, hash-verified

400
401// stubExtProvider is a minimal extcred.Provider for testing external-provider guards.
402type stubExtProvider struct {
403 name string
404 acct *extcred.Account
405 err error
406}
407
408func (s *stubExtProvider) Name() string { return s.name }
409func (s *stubExtProvider) ResolveAccount(_ context.Context) (*extcred.Account, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected