mirror of
https://github.com/golang/go
synced 2024-11-19 04:34:39 -07:00
58bb5bbe30
Find references to identifiers in both a package and its test package. Change-Id: I9d9da4aa37c36c448336aed044df79cfd1c903f1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/183990 Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
9 lines
262 B
Go
9 lines
262 B
Go
package testy
|
|
|
|
import "testing"
|
|
|
|
func TestSomething(t *testing.T) { //@item(TestSomething, "TestSomething(t *testing.T)", "", "func")
|
|
var x int //@mark(testyX, "x"),diag("x", "LSP", "x declared but not used"),refs("x", testyX)
|
|
a() //@mark(testyA, "a")
|
|
}
|