mirror of
https://github.com/Crocmagnon/fatcontext.git
synced 2024-11-10 02:03:58 +01:00
20 lines
410 B
Go
20 lines
410 B
Go
|
package analyzer_test
|
||
|
|
||
|
import (
|
||
|
"github.com/Crocmagnon/foreshadow/pkg/analyzer"
|
||
|
"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, "./...")
|
||
|
}
|