Lines Matching refs:filepath
43 err = filepath.Walk("testdata", func(path string, info os.FileInfo, err error) error {
44 if filepath.Base(path) == "import_public" && !supportTypeAliases {
46 return filepath.SkipDir
51 dir := filepath.Dir(path)
67 filepath.Walk(workdir, func(genPath string, info os.FileInfo, _ error) error {
74 relPath, err := filepath.Rel(workdir, genPath)
79 if filepath.SplitList(relPath)[0] == ".." {
82 goldenPath := filepath.Join("testdata", relPath)
232 if err := os.MkdirAll(filepath.Join(workdir, dir), 0777); err != nil {
237 …if err := ioutil.WriteFile(filepath.Join(workdir, "alpha", "a.proto"), []byte(aProto), 0666); err …
241 …if err := ioutil.WriteFile(filepath.Join(workdir, "beta", "b.proto"), []byte(bProto), 0666); err !…
247 "--go_out=" + test.parameters + ":" + filepath.Join(workdir, "out"),
248 filepath.Join(workdir, "alpha", "a.proto"),
252 "--go_out=" + test.parameters + ":" + filepath.Join(workdir, "out"),
253 filepath.Join(workdir, "beta", "b.proto"),
258 outdir := filepath.Join(workdir, "out")
259 filepath.Walk(outdir, func(p string, info os.FileInfo, _ error) error {
263 base := filepath.Base(p)
271 relPath, _ := filepath.Rel(outdir, p)
277 got = filepath.ToSlash(got)
285 want = filepath.FromSlash(want)