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

Function Test_Infow

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

Source from the content-addressed store, hash-verified

435}
436
437func Test_Infow(t *testing.T) {
438 initDefaultLogger()
439
440 var w byteSliceWriter
441 SetOutput(&w)
442
443 msg := "info work"
444 keysAndValues := []any{"key1", "value1", "key2", "value2"}
445
446 Infow(msg, keysAndValues...)
447
448 require.Equal(t, "[Info] info work key1=value1 key2=value2\n", string(w.b))
449}
450
451func Test_Warnw(t *testing.T) {
452 initDefaultLogger()

Callers

nothing calls this directly

Calls 3

initDefaultLoggerFunction · 0.85
SetOutputFunction · 0.85
InfowFunction · 0.85

Tested by

no test coverage detected