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

Function nullRaw

coderd/x/chatd/chatprompt/chatprompt_test.go:1131–1133  ·  view source on GitHub ↗

nullRaw wraps raw JSON bytes in a NullRawMessage for test input.

(data json.RawMessage)

Source from the content-addressed store, hash-verified

1129
1130// nullRaw wraps raw JSON bytes in a NullRawMessage for test input.
1131func nullRaw(data json.RawMessage) pqtype.NullRawMessage {
1132 return pqtype.NullRawMessage{RawMessage: data, Valid: true}
1133}
1134
1135func TestParseContent_BackwardCompat(t *testing.T) {
1136 t.Parallel()

Callers 3

TestParseContent_V1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected