MCPcopy Create free account
hub / github.com/cli/cli / stubHelperConfig

Struct stubHelperConfig

pkg/cmd/auth/shared/git_credential_test.go:18–22  ·  view source on GitHub ↗

stubHelperConfig is a test double for the HelperConfig interface that returns a fixed configured helper and records whether gh was configured as the credential helper.

Source from the content-addressed store, hash-verified

16// stubHelperConfig is a test double for the HelperConfig interface that returns a fixed configured helper and records
17// whether gh was configured as the credential helper.
18type stubHelperConfig struct {
19 helper gitcredentials.Helper
20 helperErr error
21 configuredOur bool
22}
23
24func (s *stubHelperConfig) ConfigureOurs(string) error {
25 s.configuredOur = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected