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

Function TestReadFrameEmptyReader

agent/boundarylogproxy/codec/codec_test.go:75–82  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

73}
74
75func TestReadFrameEmptyReader(t *testing.T) {
76 t.Parallel()
77
78 var buf bytes.Buffer
79 readBuf := make([]byte, codec.MaxMessageSizeV1)
80 _, _, err := codec.ReadFrame(&buf, readBuf)
81 require.ErrorIs(t, err, io.EOF)
82}
83
84func TestReadFrameInvalidTag(t *testing.T) {
85 t.Parallel()

Callers

nothing calls this directly

Calls 1

ReadFrameFunction · 0.92

Tested by

no test coverage detected