MCPcopy Create free account
hub / github.com/deepflowio/deepflow / TestWriteString

Function TestWriteString

server/libs/utils/int_buffer_test.go:107–114  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestWriteString(t *testing.T) {
108 b := &IntBuffer{}
109 exp := "Hello, world! Hello, Yunshan Networks!"
110 b.WriteString(exp)
111 if b.String() != exp {
112 t.Errorf("Expected %v found %v", exp, b.String())
113 }
114}
115
116func TestReset(t *testing.T) {
117 b := &IntBuffer{}

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.95
StringMethod · 0.95
ErrorfMethod · 0.45

Tested by

no test coverage detected