Debian Codegraph @

go/analysis/passes/buildtag/buildtag_test.go

raw symbols SCIP
1 // Copyright 2018 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 buildtag_test
6
7 import (
8 "testing"
9
10 "golang.org/x/tools/go/analysis/analysistest"
11 "golang.org/x/tools/go/analysis/passes/buildtag"
12 )
13
14 func Test(t *testing.T) {
15 // This test has a dedicated hack in the analysistest package:
16 // Because it cares about IgnoredFiles, which most analyzers
17 // ignore, the test framework will consider expectations in
18 // ignore files too, but only for this analyzer.
19 analysistest.Run(t, analysistest.TestData(), buildtag.Analyzer, "a", "b")
20 }