2021-04-26 08:16:52 +00:00
|
|
|
package testifycheck
|
|
|
|
|
|
|
|
import (
|
2021-04-30 08:55:23 +00:00
|
|
|
"os"
|
|
|
|
"os/exec"
|
2021-04-26 08:16:52 +00:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
"golang.org/x/tools/go/analysis/analysistest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Test(t *testing.T) {
|
2021-04-30 08:55:23 +00:00
|
|
|
debugOut, err := exec.Command("go", "env", "GOROOT").CombinedOutput()
|
|
|
|
if err != nil {
|
|
|
|
_, _ = os.Stderr.Write(debugOut)
|
|
|
|
}
|
|
|
|
|
2021-04-26 08:16:52 +00:00
|
|
|
testdata := analysistest.TestData()
|
|
|
|
analysistest.Run(t, testdata, Analyzer, "tests/...")
|
|
|
|
}
|