deprecate testscript.RunMain()

This commit is contained in:
2025-03-06 17:24:16 +01:00
parent 5726ed3f7f
commit 832841c1ff

View File

@@ -1,16 +1,15 @@
package main package main
import ( import (
"os"
"testing" "testing"
"github.com/rogpeppe/go-internal/testscript" "github.com/rogpeppe/go-internal/testscript"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {
os.Exit(testscript.RunMain(m, map[string]func() int{ testscript.Main(m, map[string]func(){
"tablizer": Main, "tablizer": main,
})) })
} }
func TestTablizer(t *testing.T) { func TestTablizer(t *testing.T) {