- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 249 for tempdir (0.17 sec)
-
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) -
src/os/os_unix_test.go
} } func TestChown(t *testing.T) { if runtime.GOOS == "wasip1" { t.Skip("file ownership not supported on " + runtime.GOOS) } t.Parallel() // Use TempDir() to make sure we're on a local file system, // so that the group ids returned by Getgroups will be allowed // on the file. On NFS, the Getgroups groups are // basically useless. f := newFile("TestChown", t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:32:43 UTC 2023 - 11.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy
import org.gradle.api.Incubating import spock.lang.Specification import spock.lang.TempDir import javax.inject.Inject class PublicAPIRulesTest extends Specification { private final static String TEST_INTERFACE_NAME = 'org.gradle.api.ApiTest' private final static String TEST_INTERFACE_SIMPLE_NAME = 'ApiTest' @TempDir File tmp File sourceFile BinaryCompatibilityRepository repository
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Dec 01 20:12:19 UTC 2023 - 16K 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) -
src/io/io_test.go
const content = "0123456789ABCDEF" contentSize := int64(len(content)) tmpdir, err := os.MkdirTemp(t.TempDir(), "TestOffsetWriter_WriteAt") if err != nil { t.Fatal(err) } work := func(off, at int64) { position := fmt.Sprintf("off_%d_at_%d", off, at) tmpfile, err := os.CreateTemp(tmpdir, position) if err != nil || tmpfile == nil { t.Fatalf("CreateTemp(%s) failed: %v", position, err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:04:41 UTC 2023 - 18.9K bytes - Viewed (0) -
src/debug/buildinfo/buildinfo_test.go
return fmt.Sprintf("-buildmode=%s not supported on %s/%s", buildmode, goos, goarch) } buildWithModules := func(t *testing.T, goos, goarch, buildmode string) string { dir := t.TempDir() gomodPath := filepath.Join(dir, "go.mod") gomodData := []byte("module example.com/m\ngo 1.18\n") if err := os.WriteFile(gomodPath, gomodData, 0666); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 11.2K 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) -
build-logic/packaging/src/test/kotlin/gradlebuild/instrumentation/InstrumentationMetadataPluginTest.kt
import org.gradle.testkit.runner.GradleRunner import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import org.junit.jupiter.api.io.TempDir import java.io.File class InstrumentationMetadataPluginTest { @TempDir private lateinit var temporaryFolder: File private lateinit var projectRoot: File @BeforeEach fun setup() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 10:55:53 UTC 2023 - 10.9K bytes - Viewed (0) -
src/cmd/internal/moddeps/moddeps_test.go
} } if !modcacheOk { modcacheEnv = []string{ "GOMODCACHE=" + t.TempDir(), "GOFLAGS=" + os.Getenv("GOFLAGS") + " -modcacherw", // Allow t.TempDir() to clean up subdirectories. } } } // Build the bundle binary at the golang.org/x/tools // module version specified in GOROOT/src/cmd/go.mod. bundleDir := t.TempDir() r := runner{ Dir: filepath.Join(testenv.GOROOT(t), "src/cmd"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 18.6K bytes - Viewed (0)