- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 108 for tempdir (0.14 sec)
-
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/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-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy
import org.gradle.testkit.runner.GradleRunner import org.gradle.util.internal.TextUtil import spock.lang.Issue import spock.lang.TempDir @Requires(UnitTestPreconditions.NotWindows) class ConfigurationCacheTestKitIntegrationTest extends AbstractConfigurationCacheIntegrationTest { @TempDir File jacocoDestinationDir def "reports when a TestKit build runs with a Java agent and configuration caching enabled"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 9.9K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo_test.go
tempDir, err := ioutil.TempDir("", "git_repo_test.") if err != nil { t.Fatalf("can't make a temp rootdir: %v", err) } return tempDir, volumetest.NewFakeVolumeHost(t, tempDir, nil, emptydir.ProbeVolumePlugins()) } func TestCanSupport(t *testing.T) { plugMgr := volume.VolumePluginMgr{} tempDir, host := newTestHost(t) defer os.RemoveAll(tempDir)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 08:26:26 UTC 2024 - 12K bytes - Viewed (0) -
src/os/os_windows_test.go
} } func TestOpenVolumeName(t *testing.T) { tmpdir := t.TempDir() chdir(t, tmpdir) want := []string{"file1", "file2", "file3", "gopher.txt"} slices.Sort(want) for _, name := range want { err := os.WriteFile(filepath.Join(tmpdir, name), nil, 0777) if err != nil { t.Fatal(err) } } f, err := os.Open(filepath.VolumeName(tmpdir)) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.8K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java
} @Test void testReadModifiedPoms(@TempDir Path tempDir) throws Exception { // TODO a similar test should be created to test the dependency management (basically all usages // of DefaultModelBuilder.getCache() are affected by MNG-6530 FileUtils.copyDirectoryStructure(new File("src/test/resources/projects/grandchild-check"), tempDir.toFile());
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 09:06:12 UTC 2024 - 18.3K bytes - Viewed (0) -
cmd/kube-proxy/app/server_linux_test.go
if err != nil { return nil, "", fmt.Errorf("unexpected error when writing content to temp kube-proxy config file: %v", err) } return file, tempDir, nil } tearDown := func(file *os.File, tempDir string) { file.Close() os.RemoveAll(tempDir) } testCases := []struct { name string proxyServer proxyRun append bool expectedErr string }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 28 15:51:23 UTC 2024 - 21.9K bytes - Viewed (0) -
src/testing/testing_test.go
t.Fatal("never received dir channel") } } }) dir := t.TempDir() if dir == "" { t.Fatal("expected dir") } dir2 := t.TempDir() if dir == dir2 { t.Fatal("subsequent calls to TempDir returned the same directory") } if filepath.Dir(dir) != filepath.Dir(dir2) { t.Fatalf("calls to TempDir do not share a parent; got %q, %q", dir, dir2) } dirCh <- dir fi, err := os.Stat(dir)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 19.3K bytes - Viewed (0) -
cmd/kubeadm/app/constants/constants.go
tempDir := filepath.Join(KubernetesDir, TempDirForKubeadm) if len(kubernetesDir) != 0 { tempDir = filepath.Join(kubernetesDir, TempDirForKubeadm) } // creates target folder if not already exists if err := os.MkdirAll(tempDir, 0700); err != nil { return "", errors.Wrapf(err, "failed to create directory %q", tempDir) } tempDir, err := os.MkdirTemp(tempDir, dirName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 03:36:35 UTC 2024 - 32.4K bytes - Viewed (0) -
platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/JavaCompilerArgumentsBuilderTest.groovy
def spec = new DefaultJavaCompileSpec() def builder = new JavaCompilerArgumentsBuilder(spec) def setup() { spec.tempDir = tempDir.file("tmp") spec.compileOptions = TestUtil.newInstance(CompileOptions, TestUtil.objectFactory()) } def "generates options for an unconfigured spec"() { expect: builder.build() == defaultOptions }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 20:20:36 UTC 2024 - 11.9K bytes - Viewed (0)