(t *testing.T)
| 421 | } |
| 422 | |
| 423 | func 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 | |
| 437 | func Test_Infow(t *testing.T) { |
| 438 | initDefaultLogger() |
nothing calls this directly
no test coverage detected