MCPcopy Index your code
hub / github.com/docker/docker-agent / TestBuffer_Reset

Function TestBuffer_Reset

pkg/concurrent/buffer_test.go:52–60  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

50}
51
52func TestBuffer_Reset(t *testing.T) {
53 t.Parallel()
54 var b Buffer
55 _, _ = b.Write([]byte("hello"))
56
57 b.Reset()
58 assert.Equal(t, 0, b.Len())
59 assert.Empty(t, b.String())
60}
61
62func TestBuffer_Drain(t *testing.T) {
63 t.Parallel()

Callers

nothing calls this directly

Calls 4

WriteMethod · 0.95
ResetMethod · 0.95
LenMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected