-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
Systems simulating go test have two methods to invoke tests:
testing.Mainhttps://pkg.go.dev/testing#Maintesting.MainStarthttps://pkg.go.dev/testing#MainStart
From the doc comments for Main, MainStart is preferred:
Systems simulating "go test" should be updated to use MainStart.
Previously, before go1.18, the internal interface testDeps could be satisfied by an external package. Upgrading to go1.18 the new internal interface contains methods with references to a private struct corpusEntry for the added fuzzing support. MainStart isn't part of the go compatibility promise. I propose providing an implementation of testDeps like
Line 1569 in 0ed31eb
| type matchStringOnly func(pat, str string) (bool, error) |
that could be used by external packages to call
MainStart.Reactions are currently unavailable