- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 367 for tempdir (0.31 sec)
-
platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/install/DefaultJdkCacheDirectoryTest.groovy
import org.gradle.util.internal.Resources import org.junit.Rule import spock.lang.Ignore import spock.lang.Specification import spock.lang.TempDir import static org.junit.Assume.assumeTrue class DefaultJdkCacheDirectoryTest extends Specification { @TempDir public File temporaryFolder @Rule public final Resources resources = new Resources()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 06:41:24 UTC 2024 - 10.2K bytes - Viewed (0) -
src/internal/testenv/testenv_test.go
hasExecGo = true }) if !hasExec { t.Errorf(`MustHaveExec(t) skipped unexpectedly`) } if !hasExecGo { t.Errorf(`MustHaveExecPath(t, "go") skipped unexpectedly`) } dir := t.TempDir() mainGo := filepath.Join(dir, "main.go") if err := os.WriteFile(mainGo, []byte("package main\nfunc main() {}\n"), 0644); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 25 23:12:44 UTC 2024 - 6.1K bytes - Viewed (0) -
pkg/log/config_test.go
err = Configure(o) if err == nil { t.Errorf("Got success, expecting error") } } func TestRotateNoStdout(t *testing.T) { // Ensure that rotation is setup properly dir := t.TempDir() file := dir + "/rot.log" o := DefaultOptions() o.OutputPaths = []string{} o.RotateOutputPath = file if err := Configure(o); err != nil { t.Fatalf("Unable to configure logging: %v", err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 10.9K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env_test.go
want += s + "\n" } scriptfilename := "script.sh" if runtime.GOOS == "windows" { scriptfilename = "script.bat" } var cmd *exec.Cmd if runtime.GOOS == "windows" { scriptfile := filepath.Join(t.TempDir(), scriptfilename) if err := os.WriteFile(scriptfile, b.Bytes(), 0777); err != nil { t.Fatal(err) } cmd = testenv.Command(t, "cmd.exe", "/C", scriptfile) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 2.3K bytes - Viewed (0) -
src/runtime/runtime-gdb_test.go
} func testGdbPython(t *testing.T, cgo bool) { if cgo { testenv.MustHaveCGO(t) } checkGdbEnvironment(t) t.Parallel() checkGdbVersion(t) checkGdbPython(t) dir := t.TempDir() var buf bytes.Buffer buf.WriteString("package main\n") if cgo { buf.WriteString(`import "C"` + "\n") } buf.WriteString(helloSource) src := buf.Bytes() // Locate breakpoint line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 23.2K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager_test.go
mappingLen: 65536, maxPods: 2, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { testUserNsPodsManager := &testUserNsPodsManager{ podDir: t.TempDir(), mappingFirstID: tc.mappingFirstID, mappingLen: tc.mappingLen, maxPods: tc.maxPods, } _, err := MakeUserNsManager(testUserNsPodsManager) if tc.success {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 14.6K bytes - Viewed (0) -
platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/gcc/ArStaticLibraryArchiver.java
buildQueue.add(invocation); } }; } @Override protected void addOptionsFileArgs(List<String> args, File tempDir) { // No support for command file } private static class ArchiverSpecToArguments implements ArgsTransformer<StaticLibraryArchiverSpec> { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 14:04:39 UTC 2024 - 4.1K bytes - Viewed (0) -
src/testing/testing.go
} // TempDir returns a temporary directory for the test to use. // The directory is automatically removed when the test and // all its subtests complete. // Each subsequent call to t.TempDir returns a unique directory; // if the directory creation fails, TempDir terminates the test by calling Fatal. func (c *common) TempDir() string { c.checkFuzzFn("TempDir")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/internal/coverage/cfile/emitdata_test.go
} } } func TestIssue59563TruncatedCoverPkgAll(t *testing.T) { if testing.Short() { t.Skipf("skipping test: too long for short mode") } testenv.MustHaveGoRun(t) tmpdir := t.TempDir() ppath := filepath.Join(tmpdir, "foo.cov") cmd := exec.Command(testenv.GoToolPath(t), "test", "-coverpkg=all", "-coverprofile="+ppath) cmd.Dir = filepath.Join("testdata", "issue59563") b, err := cmd.CombinedOutput()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 16.3K bytes - Viewed (0) -
cmd/data-usage_test.go
"context" "encoding/json" "fmt" "os" "path" "path/filepath" "testing" ) type usageTestFile struct { name string size int } func TestDataUsageUpdate(t *testing.T) { base := t.TempDir() const bucket = "bucket" files := []usageTestFile{ {name: "rootfile", size: 10000}, {name: "rootfile2", size: 10000}, {name: "dir1/d1file", size: 2000}, {name: "dir2/d2file", size: 300},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Mar 27 15:10:40 UTC 2024 - 14.1K bytes - Viewed (0)