MCPcopy Create free account
hub / github.com/coder/coder / mustJSON

Function mustJSON

coderd/x/chatd/chatprompt/chatprompt_test.go:1922–1927  ·  view source on GitHub ↗
(t *testing.T, v any)

Source from the content-addressed store, hash-verified

1920}
1921
1922func mustJSON(t *testing.T, v any) json.RawMessage {
1923 t.Helper()
1924 data, err := json.Marshal(v)
1925 require.NoError(t, err)
1926 return data
1927}
1928
1929func mustMarshalContent(t *testing.T, content []fantasy.Content) pqtype.NullRawMessage {
1930 t.Helper()

Calls 2

HelperMethod · 0.65
MarshalMethod · 0.45

Tested by

no test coverage detected