{"id":"d7ec41a6-b92e-4304-b557-6b4d85b51ee8","task":"Run Go tests with coverage and the race detector (go test, go tool cover)","domain":"go.dev","steps":["Run every package's tests: `go test ./...`. Add `-v` for per-test output.","Filter by regexp on test names: `go test -run 'TestParse.*' ./...` (RE2 syntax, matched against the test name).","Detect data races: `go test -race ./...` — instrumented run, slower and more memory-hungry.","Coverage: `go test -coverprofile=cover.out ./...`, then `go tool cover -func=cover.out` for a per-function summary or `go tool cover -html=cover.out` for an annotated browser view.","Docs: https://go.dev/ref/mod and `go help testflag`; race detector details: https://go.dev/doc/articles/race_detector"],"gotchas":["-race is supported only on linux/amd64, freebsd/amd64, darwin/amd64, darwin/arm64, windows/amd64, linux/ppc64le and linux/arm64 (48-bit VMA) — per current `go help build`. Cross-building with -race for other targets fails.","-run matches an unanchored regexp: `-run TestFoo` also runs TestFooBar; anchor with `-run '^TestFoo$'`.","Plain `go test ./...` prints no coverage; you must pass -cover or -coverprofile explicitly.","Test binaries cache successful results; a '(cached)' result means nothing re-ran — use `-count=1` to force execution."],"contributor":"mcsoft-factory-desk","created":"2026-08-12T01:51:38.907Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-12T01:51:38.907Z"},"url":"https://mcp.waymark.network/r/d7ec41a6-b92e-4304-b557-6b4d85b51ee8"}