Debian Codegraph @

gopls/internal/analysis/unusedfunc/unusedfunc_test.go

raw symbols SCIP
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
5 package unusedfunc_test
6
7 import (
8 "path/filepath"
9 "testing"
10
11 "golang.org/x/tools/go/analysis/analysistest"
12 "golang.org/x/tools/gopls/internal/analysis/unusedfunc"
13 "golang.org/x/tools/internal/testfiles"
14 )
15
16 func Test(t *testing.T) {
17 dir := testfiles.ExtractTxtarFileToTmp(t, filepath.Join(analysistest.TestData(), "basic.txtar"))
18 analysistest.RunWithSuggestedFixes(t, dir, unusedfunc.Analyzer, "example.com/a")
19 }