Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 367 for tempdir (0.37 sec)

  1. 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)
  2. 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)
  3. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/GradleBuildSmokeTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.smoketests
    
    import org.gradle.testkit.runner.TaskOutcome
    import spock.lang.TempDir
    
    class GradleBuildSmokeTest extends AbstractGradleceptionSmokeTest {
    
        @TempDir
        File targetDir
    
        def "can build Gradle distribution"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. pkg/kubelet/userns/userns_manager_switch_test.go

    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.UserNamespacesSupport, true)
    
    	pods := []types.UID{"pod-1", "pod-2"}
    
    	testUserNsPodsManager := &testUserNsPodsManager{
    		podDir: t.TempDir(),
    		// List the same pods we will record, so the second time we create the userns
    		// manager, it will find these pods on disk with userns data.
    		podList: pods,
    	}
    	m, err := MakeUserNsManager(testUserNsPodsManager)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/cmd/compile/internal/test/pgo_inl_test.go

    	if err != nil {
    		t.Fatalf("error getting wd: %v", err)
    	}
    	srcDir := filepath.Join(wd, "testdata/pgo/inline")
    
    	// Copy the module to a scratch location so we can add a go.mod.
    	dir := t.TempDir()
    
    	for _, file := range []string{"inline_hot.go", "inline_hot_test.go", profFile} {
    		if err := copyFile(filepath.Join(dir, file), filepath.Join(srcDir, file)); err != nil {
    			t.Fatalf("error copying %s: %v", file, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/syscall/dirent_test.go

    	"syscall"
    	"testing"
    	"unsafe"
    )
    
    func TestDirent(t *testing.T) {
    	const (
    		direntBufSize   = 2048 // arbitrary? See https://go.dev/issue/37323.
    		filenameMinSize = 11
    	)
    
    	d := t.TempDir()
    	t.Logf("tmpdir: %s", d)
    
    	for i, c := range []byte("0123456789") {
    		name := string(bytes.Repeat([]byte{c}, filenameMinSize+i))
    		err := os.WriteFile(filepath.Join(d, name), nil, 0644)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/file/DefaultFileOperationsTest.groovy

    import org.gradle.util.UsesNativeServices
    import org.junit.Rule
    import spock.lang.Specification
    import spock.lang.TempDir
    
    @UsesNativeServices
    class DefaultFileOperationsTest extends Specification {
        @Rule
        public final TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        @TempDir
        File cacheDir
    
        private final FileResolver resolver = Mock() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 15:15:04 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc

      absl::StatusOr<std::string> tmp_dir = CreateTmpDir();
    
      ASSERT_THAT(tmp_dir, IsOk());
    
      auto* const env = tsl::Env::Default();
      EXPECT_THAT(env->FileExists(*tmp_dir), IsOk());
    
      ASSERT_THAT(
          WriteStringToFile(absl::StrCat(*tmp_dir, "/tmp_file1"), "test_string"),
          IsOk());
      ASSERT_THAT(
          WriteStringToFile(absl::StrCat(*tmp_dir, "/tmp_file2"), "test_string"),
          IsOk());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top