Skip to content

Commit 5fe3680

Browse files
committed
chore: move test
1 parent a49eade commit 5fe3680

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/linters_test.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ func TestTypecheck(t *testing.T) {
2525
testSourcesFromDir(t, filepath.Join(testdataDir, "notcompiles"))
2626
}
2727

28+
func TestSourcesFromTestdataSubDir(t *testing.T) {
29+
subDirs := []string{
30+
"logrlint",
31+
}
32+
33+
for _, dir := range subDirs {
34+
t.Run(dir, func(t *testing.T) {
35+
testSourcesFromDir(t, filepath.Join(testdataDir, dir))
36+
})
37+
}
38+
}
39+
2840
func testSourcesFromDir(t *testing.T, dir string) {
2941
t.Helper()
3042

@@ -117,15 +129,3 @@ func findSources(t *testing.T, pathPatterns ...string) []string {
117129

118130
return sources
119131
}
120-
121-
func TestSourcesFromTestdataSubDir(t *testing.T) {
122-
subDirs := []string{
123-
"logrlint",
124-
}
125-
126-
for _, dir := range subDirs {
127-
t.Run(dir, func(t *testing.T) {
128-
testSourcesFromDir(t, filepath.Join(testdataDir, dir))
129-
})
130-
}
131-
}

0 commit comments

Comments
 (0)