MCPcopy Create free account
hub / github.com/DoNewsCode/core / TestEsLogAdapter_Printf

Function TestEsLogAdapter_Printf

otes/log_test.go:11–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestEsLogAdapter_Printf(t *testing.T) {
12 var buf bytes.Buffer
13 l := ElasticLogAdapter{Logging: log.NewLogfmtLogger(&buf)}
14 l.Printf("test %s", "logger")
15 assert.Equal(t, "msg=\"test logger\"\n", buf.String())
16}

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected