mirror of
https://github.com/Crocmagnon/fatcontext.git
synced 2024-12-25 23:41:53 +01:00
21 lines
412 B
Go
21 lines
412 B
Go
package analyzer_test
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"golang.org/x/tools/go/analysis/analysistest"
|
|
|
|
"github.com/Crocmagnon/fatcontext/pkg/analyzer"
|
|
)
|
|
|
|
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, "./...")
|
|
}
|