(t *testing.T)
| 493 | } |
| 494 | |
| 495 | func Test_Tracew(t *testing.T) { |
| 496 | initDefaultLogger() |
| 497 | |
| 498 | var w byteSliceWriter |
| 499 | SetOutput(&w) |
| 500 | |
| 501 | msg := "trace work" |
| 502 | keysAndValues := []any{"key1", "value1", "key2", "value2"} |
| 503 | |
| 504 | Tracew(msg, keysAndValues...) |
| 505 | |
| 506 | require.Equal(t, "[Trace] trace work key1=value1 key2=value2\n", string(w.b)) |
| 507 | } |
| 508 | |
| 509 | type stringKey struct { |
| 510 | value string |
nothing calls this directly
no test coverage detected