(t *testing.T, buf *bytes.Buffer)
| 29 | } |
| 30 | |
| 31 | func decodeJSON(t *testing.T, buf *bytes.Buffer) map[string]interface{} { |
| 32 | t.Helper() |
| 33 | var m map[string]interface{} |
| 34 | s := decodeOutput(buf) |
| 35 | if err := json.Unmarshal([]byte(s), &m); err != nil { |
| 36 | t.Fatalf("failed to decode JSON %q: %v", s, err) |
| 37 | } |
| 38 | return m |
| 39 | } |
| 40 | |
| 41 | func TestSlogHandler_BasicInfo(t *testing.T) { |
| 42 | var buf bytes.Buffer |
no test coverage detected