Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 509 for tmpDirs (0.26 sec)

  1. testing/integ-test/src/integTest/groovy/org/gradle/integtests/fixture/TempDirIsUniquePerTestSpec.groovy

        static tests = new HashSet()
        static tmpDirs = new HashSet()
    
        def setup() {
            //it's very important we try to access the test dir in the setup()
            tmp.testDirectory
        }
    
        def "testOne"() {
            when:
            tests << "testOne"
            tmpDirs << tmp.testDirectory
    
            then:
            tests.size() == tmpDirs.size()
        }
    
        def "testTwo"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. testing/internal-testing/src/test/groovy/org/gradle/util/TempDirIsUniquePerTestSpec.groovy

        static tests = new HashSet()
        static tmpDirs = new HashSet()
    
        def setup() {
            //it's very important we try to access the test dir in the setup()
            temp.testDirectory
        }
    
        def "testOne"() {
            when:
            tests << "testOne"
            tmpDirs << temp.testDirectory
    
            then:
            tests.size() == tmpDirs.size()
        }
    
        def "testTwo"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. tensorflow/c/env.cc

      list->position = 0;
      return list;
    }
    
    TF_StringStream* TF_GetLocalTempDirectories() {
      auto* tmpdirs = new std::vector<::tensorflow::string>;
    
      ::tensorflow::Env::Default()->GetLocalTempDirectories(tmpdirs);
    
      auto* list = new TF_StringStream;
      list->list = tmpdirs;
      list->position = 0;
      return list;
    }
    
    char* TF_GetTempFileName(const char* extension) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 7K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathFactoryTest.groovy

            factory.addPathVariable('SUB_DIR', tmpDir.file('sub'))
    
            expect:
            def path = factory.path(tmpDir.file('sub', 'a'))
            path.url == 'file://$SUB_DIR$/a'
            path.relPath == '$SUB_DIR$/a'
        }
    
        def createsPathForARootDir() {
            factory.addPathVariable('SUB_DIR', tmpDir.file('sub'))
            factory.addPathVariable('ROOT_DIR', tmpDir.testDirectory)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. pkg/volume/local/local_test.go

    }
    
    func TestCanSupport(t *testing.T) {
    	tmpDir, plug := getPlugin(t)
    	defer os.RemoveAll(tmpDir)
    
    	if !plug.CanSupport(getTestVolume(false, tmpDir, false, nil)) {
    		t.Errorf("Expected true")
    	}
    }
    
    func TestGetAccessModes(t *testing.T) {
    	tmpDir, plug := getPersistentPlugin(t)
    	defer os.RemoveAll(tmpDir)
    
    	modes := plug.GetAccessModes()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/initialization/layout/BuildLayoutFactoryTest.groovy

            layout.buildDefinitionMissing
    
            cleanup: "temporary tree"
            tmpDir.deleteDir()
        }
    
        def "returns closest ancestor directory that contains a #settingsFilename file"() {
            given:
            def locator = buildLayoutFactoryFor()
    
            and:
            def currentDir = tmpDir.createDir("sub/current")
            def subDir = tmpDir.createDir("sub")
            def settingsFile = subDir.createFile(settingsFilename)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/ZipHasherTest.groovy

        def "adding an empty jar inside another jar changes the hashcode"() {
            given:
            def outerContent = tmpDir.createDir("outer")
            def outer = tmpDir.file("outer.jar")
            outerContent.zipTo(outer)
            def originalHash = zipHasher.hash(snapshotContext(outer))
    
            when:
            def innerContent = tmpDir.createDir("inner")
            def inner = outerContent.file("inner.jar")
            innerContent.zipTo(inner)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/services/UnsupportedFilePermissionsTest.groovy

            when:
            permissions.chmod(tmpDir.createFile("file"), 0644)
            permissions.chmod(tmpDir.createDir("dir"), 0644)
    
            then:
            outputEventListener.toString() == WARN_MESSAGE
        }
    
        def "warns at most once"() {
            when:
            permissions.chmod(tmpDir.createFile("file"), 0644)
            permissions.getUnixMode(tmpDir.createDir("dir"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. platforms/software/platform-base/src/test/groovy/org/gradle/language/base/internal/tasks/StaleOutputCleanerTest.groovy

        }
    
        def "deletes empty parent directories"() {
            def file1 = tmpDir.file('foo/bar/file1').createFile()
            tmpDir.file('foo/baz/file2').createFile()
    
            expect:
            StaleOutputCleaner.cleanOutputs(deleter, files(file1), tmpDir.testDirectory)
            !tmpDir.file('foo/bar').exists()
            tmpDir.file('foo/baz').exists()
        }
    
        def "deletes parent directories regardless of order"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. cmd/kubeadm/test/util.go

    func SetupTempDir(t *testing.T) string {
    	tmpdir, err := os.MkdirTemp("", "")
    	if err != nil {
    		t.Fatalf("Couldn't create tmpdir")
    	}
    
    	return tmpdir
    }
    
    // SetupEmptyFiles is a utility function for kubeadm testing that creates one or more empty files (touch)
    func SetupEmptyFiles(t *testing.T, tmpdir string, fileNames ...string) {
    	for _, fileName := range fileNames {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 3.8K bytes
    - Viewed (0)
Back to top