func TestConflicts(t *testing.T) { … } func TestInvalidIdentifiers(t *testing.T) { … } func TestRewrites(t *testing.T) { … } func TestDiff(t *testing.T) { … } // Simplifying wrapper around buildutil.FakeContext for packages whose // filenames are sequentially numbered (%d.go). pkgs maps a package // import path to its list of file contents. func fakeContext(pkgs map[string][]string) *build.Context { … } // helper for single-file main packages with no imports. func main(content string) *build.Context { … }