- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 250 for tempdir (0.17 sec)
-
src/os/removeall_test.go
prevDir, err := Getwd() if err != nil { t.Fatalf("Could not get wd: %s", err) } tempDir, err := MkdirTemp("", "TestRemoveAllDot-") if err != nil { t.Fatalf("Could not create TempDir: %s", err) } defer RemoveAll(tempDir) err = Chdir(tempDir) if err != nil { t.Fatalf("Could not chdir to tempdir: %s", err) } err = RemoveAll(".") if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:21:29 UTC 2024 - 12.3K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/SingleIncludePatternFileTreeSpec.groovy
1 * visitor.visitFile({ it.file == tempDir.file("dir2/file3") }) 1 * visitor.visitDir({ it.file == tempDir.file("dir3") }) 1 * visitor.visitFile({ it.file == tempDir.file("dir3/file1") }) 1 * visitor.visitFile({ it.file == tempDir.file("dir3/file2") }) 1 * visitor.visitFile({ it.file == tempDir.file("dir3/file3") })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.8K bytes - Viewed (0) -
cni/pkg/install/install_test.go
// Create temp directory for files tempDir := t.TempDir() // Create existing config files if specified in test case for srcFilename, targetFilename := range c.existingConfFiles { if err := file.AtomicCopy(filepath.Join("testdata", srcFilename), tempDir, targetFilename); err != nil { t.Fatal(err) } } cfg := &config.InstallConfig{ MountedCNINetDir: tempDir, CNIConfName: c.cniConfName,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 11.1K bytes - Viewed (0) -
cni/pkg/install/cniconfig_test.go
// Create temp directory for files tempDir := t.TempDir() // Create existing config files if specified in test case for srcFilename, targetFilename := range c.existingConfFiles { if err := file.AtomicCopy(filepath.Join("testdata", srcFilename), tempDir, targetFilename); err != nil { t.Fatal(err) } } cfg.MountedCNINetDir = tempDir var expectedFilepath string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 15.4K bytes - Viewed (0) -
src/cmd/link/elf_test.go
// to platform.) testenv.MustHaveGoBuild(t) t.Parallel() tmpdir := t.TempDir() src := filepath.Join(tmpdir, "x.go") if err := os.WriteFile(src, []byte(goSource), 0444); err != nil { t.Fatal(err) } exe := filepath.Join(tmpdir, "x.exe") cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-ldflags=-R=0x100000", "-o", exe, src)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 16:34:01 UTC 2023 - 13.7K bytes - Viewed (0) -
src/cmd/link/link_test.go
} tmpdir := t.TempDir() xSrc := filepath.Join(tmpdir, "x.go") pSrc := filepath.Join(tmpdir, "p.go") xObj := filepath.Join(tmpdir, "x.o") pObj := filepath.Join(tmpdir, "p.o") exe := filepath.Join(tmpdir, "x.exe") importcfgfile := filepath.Join(tmpdir, "importcfg") testenv.WriteImportcfg(t, importcfgfile, map[string]string{"p": pObj})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:02 UTC 2024 - 43.5K bytes - Viewed (0) -
platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy
HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED, 511 // network authentication required ] @Rule HttpServer server = new HttpServer() @Rule TestNameTestDirectoryProvider tempDir = new TestNameTestDirectoryProvider(getClass()) BuildCacheServiceFactory.Describer buildCacheDescriber HttpClientHelper.Factory httpClientHelperFactory = HttpClientHelper.Factory.createFactory(new DocumentationRegistry())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 05 16:15:24 UTC 2024 - 12.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/ld_test.go
func main() { println(runtime.MemProfileRate) } `, "524288", }, } for _, tt := range tests { tt := tt t.Run(tt.name, func(t *testing.T) { t.Parallel() tempDir := t.TempDir() src := filepath.Join(tempDir, "x.go") if err := os.WriteFile(src, []byte(tt.prog), 0644); err != nil { t.Fatal(err) } cmd := testenv.Command(t, testenv.GoToolPath(t), "run", src)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 05:45:53 UTC 2023 - 10.3K bytes - Viewed (0) -
tools/bug-report/pkg/bugreport/bugreport.go
} outPath := filepath.Join(outDir, "bug-report.tar.gz") if !config.DryRun { common.LogAndPrintf("Creating an archive at %s.\n", outPath) archiveDir := archive.DirToArchive(tempDir) if tempDir != "" { archiveDir = tempDir } curTime = time.Now() err := archive.Create(archiveDir, outPath) fmt.Printf("Time used for creating the tar file is %v.\n", time.Since(curTime)) if err != nil { return err
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 20:57:29 UTC 2024 - 20.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java
final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(CONTEXT_TEMPDIR_KEY); String tempDir = tempDirFile.getAbsolutePath(); if (tempDir == null || tempDir.length() == 0) { tempDir = System.getProperty(JAVA_IO_TMPDIR_KEY); } return tempDir; } // ===================================================================================
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 16.4K bytes - Viewed (0)