golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/diagnostics/osarch_suffix.txt (about) 1 This test verifies that we add an [os,arch] suffix to each diagnostic 2 that doesn't appear in the default build (=runtime.{GOOS,GOARCH}). 3 4 See golang/go#65496. 5 6 The two p/*.go files below are written to trigger the same diagnostic 7 (range, message, source, etc) but varying only by URI. 8 9 In the q test, a single location in the common code q.go has two 10 diagnostics, one of which is tagged. 11 12 This test would fail on openbsd/mips64 because it will be 13 the same as the default build, so we skip that platform. 14 15 -- flags -- 16 -skip_goos=openbsd 17 18 -- go.mod -- 19 module example.com 20 21 -- p/p.go -- 22 package p 23 24 var _ fmt.Stringer //@diag("fmt", re"unde.*: fmt$") 25 26 -- p/p_openbsd_mips64.go -- 27 package p 28 29 var _ fmt.Stringer //@diag("fmt", re"unde.*: fmt \\[openbsd,mips64\\]") 30 31 -- q/q_default.go -- 32 //+build !openbsd && !mips64 33 34 package q 35 36 func f(int) int 37 38 -- q/q_openbsd_mips64.go -- 39 package q 40 41 func f(string) int 42 43 -- q/q.go -- 44 package q 45 46 var _ = f() //@ diag(")", re`.*want \(string\) \[openbsd,mips64\]`), diag(")", re`.*want \(int\)$`)