MCPcopy
hub / github.com/cli/cli / stubDeviceID

Function stubDeviceID

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected