Add a shim for internal/fuzz

This simply shadows the real code temporarily to see what else is
broken. It only defines a single type to fix testing/internal/testdeps.
This commit is contained in:
Elliott Sales de Andrade
2022-02-05 03:49:55 -05:00
committed by Ron Evans
parent 20a27746b2
commit 9cedd78d9c
6 changed files with 309 additions and 9 deletions
-9
View File
@@ -430,15 +430,6 @@ type testDeps interface {
MatchString(pat, str string) (bool, error)
}
func MainStart(deps interface{}, tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample) *M {
Init()
return &M{
Tests: tests,
Benchmarks: benchmarks,
deps: deps.(testDeps),
}
}
// Run runs the tests. It returns an exit code to pass to os.Exit.
func (m *M) Run() (code int) {
defer func() {