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

Function mustMarshalContent

coderd/x/chatd/chatprompt/chatprompt_test.go:1929–1934  ·  view source on GitHub ↗
(t *testing.T, content []fantasy.Content)

Source from the content-addressed store, hash-verified

1927}
1928
1929func mustMarshalContent(t *testing.T, content []fantasy.Content) pqtype.NullRawMessage {
1930 t.Helper()
1931 result, err := chatprompt.MarshalContent(content, nil)
1932 require.NoError(t, err)
1933 return result
1934}
1935
1936func mustMarshalToolResult(t *testing.T, toolCallID, toolName string, result json.RawMessage, isError, isMedia, providerExecuted bool) pqtype.NullRawMessage {
1937 t.Helper()

Calls 2

MarshalContentFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected