Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cli/cli
/ mustMarshal
Function
mustMarshal
pkg/cmd/send-telemetry/send_telemetry_test.go:221–226 ·
view source on GitHub ↗
(t *testing.T, v any)
Source
from the content-addressed store, hash-verified
219
}
220
221
func
mustMarshal(t *testing.T, v any) string {
222
t.Helper()
223
data, err := json.Marshal(v)
224
require.NoError(t, err)
225
return
string(data)
226
}
Callers
1
TestRunSendTelemetry
Function · 0.85
Calls
1
Helper
Method · 0.65
Tested by
no test coverage detected