mirror of
https://github.com/golang/go
synced 2024-11-06 06:36:20 -07:00
a1e2396bbd
The current implementation of the fill struct tool is not a part of the analysis framework. This commit moves the functionality from the source directory to the analysis directory. Change-Id: Ibe37b57f3e6680c8729932dbbe010a4642600e4a Reviewed-on: https://go-review.googlesource.com/c/tools/+/237258 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
18 lines
451 B
Go
18 lines
451 B
Go
// Copyright 2020 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package fillstruct_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"golang.org/x/tools/go/analysis/analysistest"
|
|
"golang.org/x/tools/internal/lsp/analysis/fillstruct"
|
|
)
|
|
|
|
func Test(t *testing.T) {
|
|
testdata := analysistest.TestData()
|
|
analysistest.RunWithSuggestedFixes(t, testdata, fillstruct.Analyzer, "a")
|
|
}
|