Alan Donovan | a0ecdcb | 2018-10-15 18:10:24 -0400 | [diff] [blame] | 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 | |
Alan Donovan | fe08867 | 2018-10-09 10:56:14 -0400 | [diff] [blame] | 5 | package nilfunc_test |
| 6 | |
| 7 | import ( |
Alan Donovan | 23c86e8 | 2023-12-12 12:54:00 -0500 | [diff] [blame] | 8 | "testing" |
| 9 | |
Alan Donovan | fe08867 | 2018-10-09 10:56:14 -0400 | [diff] [blame] | 10 | "golang.org/x/tools/go/analysis/analysistest" |
| 11 | "golang.org/x/tools/go/analysis/passes/nilfunc" |
| 12 | ) |
| 13 | |
| 14 | func Test(t *testing.T) { |
| 15 | testdata := analysistest.TestData() |
Alan Donovan | 23c86e8 | 2023-12-12 12:54:00 -0500 | [diff] [blame] | 16 | analysistest.Run(t, testdata, nilfunc.Analyzer, "a", "typeparams") |
Alan Donovan | fe08867 | 2018-10-09 10:56:14 -0400 | [diff] [blame] | 17 | } |