(t *testing.T)
| 435 | } |
| 436 | |
| 437 | func 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 | |
| 451 | func Test_Warnw(t *testing.T) { |
| 452 | initDefaultLogger() |
nothing calls this directly
no test coverage detected