feat: add logrlint ()

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
Timon Wong 2022-08-23 04:49:39 +08:00 committed by GitHub
parent 320a18eb37
commit f48530e25e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 69 additions and 0 deletions

View file

@ -25,6 +25,18 @@ func TestTypecheck(t *testing.T) {
testSourcesFromDir(t, filepath.Join(testdataDir, "notcompiles"))
}
func TestSourcesFromTestdataSubDir(t *testing.T) {
subDirs := []string{
"logrlint",
}
for _, dir := range subDirs {
t.Run(dir, func(t *testing.T) {
testSourcesFromDir(t, filepath.Join(testdataDir, dir))
})
}
}
func testSourcesFromDir(t *testing.T, dir string) {
t.Helper()