func mkGenState() *genstate { … } func TestBasic(t *testing.T) { … } func TestMoreComplicated(t *testing.T) { … } func TestIsBuildable(t *testing.T) { … } // TestExhaustive does a series of code genreation runs, starting with // (relatively) simple code and then getting progressively more // complex (more params, deeper structs, turning on additional // features such as address-taken vars and reflect testing). The // intent here is mainly to insure that the tester still works if you // turn things on and off, e.g. that each feature is separately // controllable and not linked to other things. func TestExhaustive(t *testing.T) { … } func TestEmitBadBuildFailure(t *testing.T) { … } func TestEmitBadRunFailure(t *testing.T) { … }