Skip to content

Commit 75507eb

Browse files
committed
add vulncheck failing testcase
1 parent f2f322e commit 75507eb

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/linters_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func TestTypecheck(t *testing.T) {
3030
func TestSourcesFromTestdataSubDir(t *testing.T) {
3131
subDirs := []string{
3232
"loggercheck",
33+
"vulncheck",
3334
}
3435

3536
for _, dir := range subDirs {

test/testdata/vulncheck/go.mod

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module vulncheck
2+
3+
go 1.19
4+
5+
require (
6+
golang.org/x/text/languag v0.37.0
7+
)

test/testdata/vulncheck/vulncheck.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package vulncheck
2+
3+
import "golang.org/x/text/language"
4+
5+
func testvuln() {
6+
_ = language.MustParseRegion("US")
7+
}

0 commit comments

Comments
 (0)