MCPcopy Create free account
hub / github.com/ankorstore/yokai / TestPrefix

Function TestPrefix

httpserver/logger_test.go:39–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func TestPrefix(t *testing.T) {
40 logger, err := log.NewDefaultLoggerFactory().Create()
41 assert.NoError(t, err)
42
43 echoLogger := httpserver.NewEchoLogger(logger)
44
45 echoLogger.SetPrefix("prefix")
46 assert.Equal(t, "prefix", echoLogger.Prefix())
47}
48
49func TestToZerolog(t *testing.T) {
50 logger, err := log.NewDefaultLoggerFactory().Create()

Callers

nothing calls this directly

Calls 3

SetPrefixMethod · 0.95
PrefixMethod · 0.95
CreateMethod · 0.65

Tested by

no test coverage detected