MCPcopy Index your code
hub / github.com/cli/cli / stubDeviceIDError

Function stubDeviceIDError

internal/telemetry/telemetry_test.go:32–36  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

30}
31
32func stubDeviceIDError(err error) func() {
33 orig := deviceIDFunc
34 deviceIDFunc = func() (string, error) { return "", err }
35 return func() { deviceIDFunc = orig }
36}
37
38func stubLookupEnv(fn func(string) (string, bool)) func() {
39 orig := lookupEnvFunc

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected