You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
seankhliao
changed the title
testing: Support external packages to call testing.MainStart
proposal: testing: Support external packages to call testing.MainStart
Mar 24, 2022
Systems simulating
go test
have two methods to invoke tests:testing.Main
https://pkg.go.dev/testing#Maintesting.MainStart
https://pkg.go.dev/testing#MainStartFrom the doc comments for
Main
,MainStart
is preferred: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 likego/src/testing/testing.go
Line 1569 in 0ed31eb
that could be used by external packages to call
MainStart
.The text was updated successfully, but these errors were encountered: