go/src/log/slog/slogtest_test.go

func TestSlogtest(t *testing.T) {}

func parseLines(src []byte, parse func([]byte) (map[string]any, error)) ([]map[string]any, error) {}

func parseJSON(bs []byte) (map[string]any, error) {}

// parseText parses the output of a single call to TextHandler.Handle.
// It can parse the output of the tests in this package,
// but it doesn't handle quoted keys or values.
// It doesn't need to handle all cases, because slogtest deliberately
// uses simple inputs so handler writers can focus on testing
// handler behavior, not parsing.
func parseText(bs []byte) (map[string]any, error) {}