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

Function TestHeadTailBuffer_WriteEmptySlice

agent/agentproc/headtail_test.go:253–261  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

251}
252
253func TestHeadTailBuffer_WriteEmptySlice(t *testing.T) {
254 t.Parallel()
255
256 buf := agentproc.NewHeadTailBuffer()
257 n, err := buf.Write([]byte{})
258 require.NoError(t, err)
259 require.Equal(t, 0, n)
260 require.Equal(t, 0, buf.TotalWritten())
261}
262
263func TestHeadTailBuffer_Reset(t *testing.T) {
264 t.Parallel()

Callers

nothing calls this directly

Calls 4

WriteMethod · 0.95
TotalWrittenMethod · 0.95
NewHeadTailBufferFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected