var testdata … type fileTest … func checkFiles(t *testing.T, exported *packagestest.Exported, tests []fileTest) { … } func checkLink(expect string) func(t *testing.T, exported *packagestest.Exported, filename string) { … } func checkContent(expect string) func(t *testing.T, exported *packagestest.Exported, filename string) { … } func TestGroupFilesByModules(t *testing.T) { … } func TestMustCopyFiles(t *testing.T) { … }