| 1 | // Copyright 2021 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 | //go:build go1.17 |
| 6 | // +build go1.17 |
| 7 | |
| 8 | package nilness_test |
| 9 | |
| 10 | import ( |
| 11 | "testing" |
| 12 | |
| 13 | "golang.org/x/tools/go/analysis/analysistest" |
| 14 | "golang.org/x/tools/go/analysis/passes/nilness" |
| 15 | ) |
| 16 | |
| 17 | func TestNilnessGo117(t *testing.T) { |
| 18 | testdata := analysistest.TestData() |
| 19 | analysistest.Run(t, testdata, nilness.Analyzer, "b") |
| 20 | } |
| 21 |