MCPcopy
hub / github.com/gofiber/fiber / Test_Debugw

Function Test_Debugw

log/default_test.go:423–435  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

421}
422
423func Test_Debugw(t *testing.T) {
424 initDefaultLogger()
425
426 var w byteSliceWriter
427 SetOutput(&w)
428
429 msg := "debug work"
430 keysAndValues := []any{"key1", "value1", "key2", "value2"}
431
432 Debugw(msg, keysAndValues...)
433
434 require.Equal(t, "[Debug] debug work key1=value1 key2=value2\n", string(w.b))
435}
436
437func Test_Infow(t *testing.T) {
438 initDefaultLogger()

Callers

nothing calls this directly

Calls 3

initDefaultLoggerFunction · 0.85
SetOutputFunction · 0.85
DebugwFunction · 0.85

Tested by

no test coverage detected