MCPcopy 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
221func 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

TestRunSendTelemetryFunction · 0.85

Calls 1

HelperMethod · 0.65

Tested by

no test coverage detected