# Race-output test corpus This directory is a corpus of captured Go test binary outputs that exercise the various ways the `-race` detector's `WARNING: DATA RACE` text can land relative to `=== RUN` / `--- PASS:` / `--- FAIL:` / `=== NAME` lines, and how `cmd/internal/test2json` attributes that output to tests. Each scenario subdirectory contains: - `src.go` — the Go source code that was compiled and run to produce the captured output. Reproduce via `go test -race -c -o /tmp/scenario.test .//`. - `raw.txt` (or scenario-specific name) — the raw stdout+stderr of the resulting test binary when run as `./scenario.test -test.v`. This is the byte stream that `go test -json` feeds to `go tool test2json` in production. `go test -json` adds two things on top of what `test2json` sees, which are NOT in these captures: a `FAIL\t\t