(t *testing.T)
| 106 | } |
| 107 | |
| 108 | func TestSlogHandler_WithIntAttr(t *testing.T) { |
| 109 | var buf bytes.Buffer |
| 110 | logger := newSlogLogger(&buf) |
| 111 | |
| 112 | logger.Info("test", slog.Int("count", 42)) |
| 113 | |
| 114 | m := decodeJSON(t, &buf) |
| 115 | if m["count"] != float64(42) { |
| 116 | t.Errorf("expected count=42, got %v", m["count"]) |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | func TestSlogHandler_WithBoolAttr(t *testing.T) { |
| 121 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected