MCPcopy Index your code
hub / github.com/coder/coder / mustMarshalAny

Function mustMarshalAny

coderd/aibridgedserver/aibridgedserver_test.go:1424–1429  ·  view source on GitHub ↗

Helper functions.

(t *testing.T, msg protobufproto.Message)

Source from the content-addressed store, hash-verified

1422
1423// Helper functions.
1424func mustMarshalAny(t *testing.T, msg protobufproto.Message) *anypb.Any {
1425 t.Helper()
1426 v, err := anypb.New(msg)
1427 require.NoError(t, err)
1428 return v
1429}
1430
1431// logLine represents a parsed JSON log entry.
1432type logLine struct {

Callers 6

TestRecordInterceptionFunction · 0.85
TestRecordTokenUsageFunction · 0.85
TestRecordPromptUsageFunction · 0.85
TestRecordToolUsageFunction · 0.85
TestRecordModelThoughtFunction · 0.85
TestStructuredLoggingFunction · 0.85

Calls 2

HelperMethod · 0.65
NewMethod · 0.65

Tested by

no test coverage detected