This commit is contained in:
Fedor Korotkiy 2021-04-30 11:55:23 +03:00
parent aafd0ec42c
commit 908c002d58

View file

@ -1,12 +1,19 @@
package testifycheck
import (
"os"
"os/exec"
"testing"
"golang.org/x/tools/go/analysis/analysistest"
)
func Test(t *testing.T) {
debugOut, err := exec.Command("go", "env", "GOROOT").CombinedOutput()
if err != nil {
_, _ = os.Stderr.Write(debugOut)
}
testdata := analysistest.TestData()
analysistest.Run(t, testdata, Analyzer, "tests/...")
}