- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for SrcPath (0.2 sec)
-
src/cmd/go/help_test.go
} const srcPath = `alldocs.go` old, err := os.ReadFile(srcPath) if err != nil { t.Fatalf("error reading %s: %v", srcPath, err) } diff := diff.Diff(srcPath, old, "go help documentation | gofmt", alldocs) if diff == nil { t.Logf("%s is up to date.", srcPath) return } if *fixDocs { if err := os.WriteFile(srcPath, alldocs, 0666); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 28 15:45:49 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/internal/bootstrap_test/overlaydir_test.go
if err != nil { return err } return filepath.WalkDir(srcRoot, func(srcPath string, entry fs.DirEntry, err error) error { if err != nil || srcPath == srcRoot { return err } if filepath.Base(srcPath) == "testdata" { // We're just building, so no need to copy those. return fs.SkipDir } suffix := strings.TrimPrefix(srcPath, srcRoot) for len(suffix) > 0 && suffix[0] == filepath.Separator {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:35:05 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/cgo/internal/cgotest/overlaydir.go
return err } srcRoot, err := filepath.Abs(srcRoot) if err != nil { return err } return filepath.Walk(srcRoot, func(srcPath string, info os.FileInfo, err error) error { if err != nil || srcPath == srcRoot { return err } suffix := strings.TrimPrefix(srcPath, srcRoot) for len(suffix) > 0 && suffix[0] == filepath.Separator { suffix = suffix[1:] } dstPath := filepath.Join(dstRoot, suffix)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 20:56:09 UTC 2023 - 1.7K bytes - Viewed (0) -
cmd/xl-storage_test.go
srcPath: "path/2/success-file", expectedErr: errPathNotFound, }, // TestXLStorage case - 5. // TestXLStorage case with path being a directory. { srcVol: "success-vol", srcPath: "path", expectedErr: errPathNotFound, }, // TestXLStorage case - 6. // TestXLStorage case with non existent volume. { srcVol: "non-existent-vol",
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 11 17:45:28 UTC 2024 - 66.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go
// build C code (if any) and link with Go code cmd, err := cc(config.cFlags...) if err != nil { t.Fatalf("error running cc: %v", err) } cmd.Args = append(cmd.Args, config.ldFlags...) cmd.Args = append(cmd.Args, "-o", outPath, "-I", dir.Base()) if tc.cSrc != "" { cmd.Args = append(cmd.Args, srcPath(tc.cSrc)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 00:12:03 UTC 2024 - 2.6K bytes - Viewed (0) -
cmd/naughty-disk_test.go
func (d *naughtyDisk) RenameData(ctx context.Context, srcVolume, srcPath string, fi FileInfo, dstVolume, dstPath string, opts RenameOptions) (RenameDataResp, error) { if err := d.calcError(); err != nil { return RenameDataResp{}, err } return d.disk.RenameData(ctx, srcVolume, srcPath, fi, dstVolume, dstPath, opts) } func (d *naughtyDisk) RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) error {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 9.4K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt
} } } private fun zip(destZip: File, srcDir: File) { val srcPath = srcDir.toPath() Files.walk(srcPath).use { paths -> zip(destZip, paths.filter { Files.isRegularFile(it, LinkOption.NOFOLLOW_LINKS) } .map { srcPath.relativize(it).toString() to it.toFile() } .toList() ) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jul 28 16:19:47 UTC 2023 - 12.5K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/file/SourceDirectorySet.java
* * @param srcPath The source directory. This is evaluated as per {@link org.gradle.api.Project#files(Object...)} * @return this */ SourceDirectorySet srcDir(Object srcPath); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 06 08:25:17 UTC 2021 - 5.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/tsan_test.go
t.Run(name, func(t *testing.T) { t.Parallel() dir := newTempDir(t) defer dir.RemoveAll(t) outPath := dir.Join(name) mustRun(t, config.goCmd("build", "-o", outPath, srcPath(tc.src))) cmd := hangProneCmd(outPath) if tc.needsRuntime { config.skipIfRuntimeIncompatible(t) } // If we don't see halt_on_error, the program // will only exit non-zero if we call C.exit.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 21:14:49 UTC 2024 - 1.9K bytes - Viewed (0) -
src/cmd/cover/cover_test.go
println("ok") } ` if err := os.MkdirAll(filepath.Dir(srcPath), 0777); err != nil { t.Skipf("creating directory with bogus path: %v", err) } if err := os.WriteFile(srcPath, []byte(mainSrc), 0666); err != nil { t.Skipf("writing file with bogus directory: %v", err) } cmd := testenv.Command(t, testcover(t), "-mode=atomic", srcPath) cmd.Stderr = new(bytes.Buffer) out, err := cmd.Output()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:28 UTC 2023 - 18.4K bytes - Viewed (0)