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

Function sendBoundaryLogsRequest

agent/boundary_logs_test.go:35–43  ·  view source on GitHub ↗
(t *testing.T, conn net.Conn, req *agentproto.ReportBoundaryLogsRequest)

Source from the content-addressed store, hash-verified

33}
34
35func sendBoundaryLogsRequest(t *testing.T, conn net.Conn, req *agentproto.ReportBoundaryLogsRequest) {
36 t.Helper()
37
38 data, err := proto.Marshal(req)
39 require.NoError(t, err)
40
41 err = codec.WriteFrame(conn, codec.TagV1, data)
42 require.NoError(t, err)
43}
44
45// TestBoundaryLogs_EndToEnd is an end-to-end test that sends a protobuf
46// message over the agent's unix socket (as boundary would) and verifies

Callers 1

Calls 3

WriteFrameFunction · 0.92
HelperMethod · 0.65
MarshalMethod · 0.45

Tested by

no test coverage detected