fatcontext/pkg/analyzer/analyzer_test.go

20 lines
410 B
Go
Raw Normal View History

2024-03-27 19:24:38 +01:00
package analyzer_test
import (
"github.com/Crocmagnon/fatcontext/pkg/analyzer"
2024-03-27 19:24:38 +01:00
"golang.org/x/tools/go/analysis/analysistest"
"os"
"path/filepath"
"testing"
)
func TestAll(t *testing.T) {
wd, err := os.Getwd()
if err != nil {
t.Fatalf("Failed to get wd: %s", err)
}
testdata := filepath.Join(filepath.Dir(filepath.Dir(wd)), "testdata")
analysistest.Run(t, testdata, analyzer.Analyzer, "./...")
}