github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/codelens/codelens_test.go (about) 1 package codelens //@codelens("package codelens", "run file benchmarks", "test") 2 3 import "testing" 4 5 func TestMain(m *testing.M) {} // no code lens for TestMain 6 7 func TestFuncWithCodeLens(t *testing.T) { //@codelens("func", "run test", "test") 8 } 9 10 func thisShouldNotHaveACodeLens(t *testing.T) { 11 } 12 13 func BenchmarkFuncWithCodeLens(b *testing.B) { //@codelens("func", "run benchmark", "test") 14 } 15 16 func helper() {} // expect no code lens