Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (32 sloc) 719 Bytes
// Copyright (c) 2019, Daniel Martí <>
// See LICENSE for licensing information
package main
import (
func TestMain(m *testing.M) {
os.Exit(testscript.RunMain(m, map[string]func() int{
"gofumpt": func() int {
// Don't change gofmtMain, to keep changes to the gofmt
// codebase to a minimum.
return exitCode
func TestScripts(t *testing.T) {
testscript.Run(t, testscript.Params{
Dir: filepath.Join("testdata", "scripts"),
Condition: func(cond string) (bool, error) {
switch cond {
case "gofumpt":
return true, nil
return false, nil
You can’t perform that action at this time.