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

Function stubDeviceID

internal/telemetry/telemetry_test.go:23–27  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

21}
22
23func stubDeviceID(id string) func() {
24 orig := deviceIDFunc
25 deviceIDFunc = func() (string, error) { return id, nil }
26 return func() { deviceIDFunc = orig }
27}
28
29func stubDeviceIDError(err error) func() {
30 orig := deviceIDFunc

Calls

no outgoing calls

Tested by

no test coverage detected