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

Function TestWriteFrameInvalidTag

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

Source from the content-addressed store, hash-verified

135}
136
137func TestWriteFrameInvalidTag(t *testing.T) {
138 t.Parallel()
139
140 var buf bytes.Buffer
141 data := make([]byte, 1)
142 const bogusTag = 222
143 err := codec.WriteFrame(&buf, codec.Tag(bogusTag), data)
144 require.ErrorIs(t, err, codec.ErrUnsupportedTag)
145}

Callers

nothing calls this directly

Calls 2

WriteFrameFunction · 0.92
TagTypeAlias · 0.92

Tested by

no test coverage detected