1 // Copyright (c) 2019, Daniel Martà <mvdan@mvdan.cc>
2 // See LICENSE for licensing information
11 "github.com/rogpeppe/go-internal/gotooltest"
12 "github.com/rogpeppe/go-internal/testscript"
15 func TestMain(m *testing.M) {
16 os.Exit(testscript.RunMain(m, map[string]func() int{
17 "gofumpt": func() int {
24 func TestScripts(t *testing.T) {
26 p := testscript.Params{
27 Dir: filepath.Join("testdata", "scripts"),
28 Condition: func(cond string) (bool, error) {
36 if err := gotooltest.Setup(&p); err != nil {