(t *testing.T, j string)
| 244 | } |
| 245 | |
| 246 | func indentJSON(t *testing.T, j string) string { |
| 247 | b := &bytes.Buffer{} |
| 248 | err := json.Indent(b, []byte(j), "", strings.Repeat(" ", 4)) |
| 249 | assert.Success(t, "indent JSON", err) |
| 250 | |
| 251 | return b.String() |
| 252 | } |
| 253 | |
| 254 | func marshalJSON(t *testing.T, m slog.Map) string { |
| 255 | actb, err := json.Marshal(m) |
no test coverage detected