Skip to content

Commit e256714

Browse files
committed
gopls: repair premature commit of 562248
I clicked the wrong button (twice) before including the last round of changes. This CL adds a necessary copyright notice, and adjusts init() and comments in a test file. Change-Id: Ibf5d8e4d071fb571eab910902f0bc22009f2b81c Reviewed-on: https://go-review.googlesource.com/c/tools/+/571755 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 887727a commit e256714

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

gopls/internal/server/counters.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2024 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package server
26

37
import "golang.org/x/telemetry/counter"

gopls/internal/test/integration/completion/completion_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package completion
66

77
import (
88
"fmt"
9-
"log"
109
"sort"
1110
"strings"
1211
"testing"
@@ -260,11 +259,6 @@ func compareCompletionLabels(want []string, gotItems []protocol.CompletionItem)
260259
return ""
261260
}
262261

263-
func init() {
264-
// useful while debugging
265-
log.SetFlags(log.Lshortfile)
266-
}
267-
268262
func TestUnimportedCompletion(t *testing.T) {
269263
const mod = `
270264
-- go.mod --
@@ -1009,6 +1003,9 @@ func Join() {}
10091003
})
10101004
}
10111005

1006+
// show that the counters get exercised. Fortuntely a small program
1007+
// exercises them all (except for mulit-chnage, for which see the code
1008+
// in env.setBufferContentLocked)
10121009
func TestCounters(t *testing.T) {
10131010
const files = `
10141011
-- go.mod --

0 commit comments

Comments
 (0)