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
The generated code for packages using *testing.M is slightly different than for other tests.
The ssa package's function to synthesize testmain packages needs updating.
The text was updated successfully, but these errors were encountered:
mikioh
changed the title
tools/go/ssa: add support to CreateTestMainPackage for testing.M
go/ssa: add support to CreateTestMainPackage for testing.M
Jan 10, 2015
rsc
changed the title
go/ssa: add support to CreateTestMainPackage for testing.M
x/tools/go/ssa: add support to CreateTestMainPackage for testing.M
Apr 14, 2015
Also, think about an alternative approach to generating the testmain package. Half of the work can be done in a way that doesn't depend on SSA. For example, in typeutil, we could add utility functions that, given a *types.Package, return a struct describing the tests within it, or a generated source file containing a main function like what go test would generate. go/loader could be extended to create and type-check these packages automatically, and then the SSA package wouldn't need to know about them.
The generated code for packages using *testing.M is slightly different than for other tests.
The ssa package's function to synthesize testmain packages needs updating.
The text was updated successfully, but these errors were encountered: