Skip to content

Commit 8bde036

Browse files
committed
update new test
1 parent 702fe93 commit 8bde036

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gopls/internal/cmd/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ const c = 0
819819
want := `
820820
/*⇒7,keyword,[]*/package /*⇒1,namespace,[]*/a
821821
/*⇒4,keyword,[]*/func /*⇒1,function,[definition]*/f()
822-
/*⇒3,keyword,[]*/var /*⇒1,variable,[definition]*/v /*⇒3,type,[defaultLibrary]*/int
822+
/*⇒3,keyword,[]*/var /*⇒1,variable,[definition]*/v /*⇒3,type,[defaultLibrary number]*/int
823823
/*⇒5,keyword,[]*/const /*⇒1,variable,[definition readonly]*/c = /*⇒1,number,[]*/0
824824
`[1:]
825825
if got != want {

gopls/internal/test/integration/misc/semantictokens_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func TestSemantic_2527(t *testing.T) {
5757
{Token: "func", TokenType: "keyword"},
5858
{Token: "Add", TokenType: "function", Mod: "definition deprecated"},
5959
{Token: "T", TokenType: "typeParameter", Mod: "definition"},
60-
{Token: "int", TokenType: "type", Mod: "defaultLibrary"},
60+
{Token: "int", TokenType: "type", Mod: "defaultLibrary number"},
6161
{Token: "target", TokenType: "parameter", Mod: "definition"},
6262
{Token: "T", TokenType: "typeParameter"},
6363
{Token: "l", TokenType: "parameter", Mod: "definition"},

gopls/internal/test/marker/testdata/token/comment.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var B = 2
2121
type Foo int
2222

2323

24-
// [F] accept a [Foo], and print it. //@token("F", "function", ""),token("Foo", "type", "")
24+
// [F] accept a [Foo], and print it. //@token("F", "function", ""),token("Foo", "type", "defaultLibrary number")
2525
func F(v Foo) {
2626
println(v)
2727

@@ -44,7 +44,7 @@ func F2(s string) {
4444
-- b.go --
4545
package p
4646

47-
// [F3] accept [*Foo] //@token("F3", "function", ""),token("Foo", "type", "")
47+
// [F3] accept [*Foo] //@token("F3", "function", ""),token("Foo", "type", "defaultLibrary number")
4848
func F3(v *Foo) {
4949
println(*v)
5050
}

0 commit comments

Comments
 (0)