Debian Codegraph @

gopls/internal/test/marker/testdata/highlight/issue60435.txt

raw
1 This is a regression test for issue 60435:
2 Highlighting "net/http" shouldn't have any effect
3 on an import path that contains it as a substring,
4 such as httptest.
5
6 -- highlights.go --
7 package highlights
8
9 import (
10 "net/http" //@hiloc(httpImp, `"net/http"`, text)
11 "net/http/httptest" //@hiloc(httptestImp, `"net/http/httptest"`, text)
12 )
13
14 var _ = httptest.NewRequest
15 var _ = http.NewRequest //@hiloc(here, "http", text), highlight(here, here, httpImp)