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

Function stubDeviceIDError

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected