Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 509 for tmpDirs (0.11 sec)

  1. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/processing/AnnotationProcessorDetectorTest.groovy

        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        Logger logger = Mock(Logger) {
            0 * _
        }
    
        AnnotationProcessorDetector detector = new AnnotationProcessorDetector(new TestFileContentCacheFactory(), logger, true)
    
        def "detects no processors in broken jars"() {
            given:
            def jar = tmpDir.file("classes.jar")
            jar << "broken"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 10:14:55 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/phases/reset/cleanupnode_test.go

    			}
    			resetConfigDir(tmpDir, dirsToClean, false)
    
    			// Verify the files we cleanup implicitly in every test:
    			assertExists(t, tmpDir)
    			assertNotExists(t, filepath.Join(tmpDir, kubeadmconstants.AdminKubeConfigFileName))
    			assertNotExists(t, filepath.Join(tmpDir, kubeadmconstants.KubeletKubeConfigFileName))
    			assertDirEmpty(t, filepath.Join(tmpDir, "manifests"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/classpath/ClasspathWalkerTest.groovy

    class ClasspathWalkerTest extends Specification {
        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(ClasspathWalkerTest.class)
        def walker = new ClasspathWalker(TestFiles.fileSystem())
    
        def "skips missing file"() {
            def visitor = Mock(ClasspathEntryVisitor)
    
            when:
            walker.visit(tmpDir.file("missing"), visitor)
    
            then:
            0 * visitor._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/os/path_test.go

    )
    
    var isReadonlyError = func(error) bool { return false }
    
    func TestMkdirAll(t *testing.T) {
    	t.Parallel()
    
    	tmpDir := TempDir()
    	path := tmpDir + "/_TestMkdirAll_/dir/./dir2"
    	err := MkdirAll(path, 0777)
    	if err != nil {
    		t.Fatalf("MkdirAll %q: %s", path, err)
    	}
    	defer RemoveAll(tmpDir + "/_TestMkdirAll_")
    
    	// Already exists, should succeed.
    	err = MkdirAll(path, 0777)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:37 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/impl/DefaultOutputFilesRepositoryTest.groovy

        def fileSystemAccess = TestFiles.fileSystemAccess()
    
        def "should determine output files generated by Gradle"() {
            def outputFiles = [
                tmpDir.createDir('build/outputs/directory'),
                tmpDir.createFile('build/file'),
                tmpDir.file('build/not-existing'),
            ]
    
            when:
            repository.recordOutputs(outputFiles.collect { snapshot(it) })
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy

            given:
            factory.open(tmpDir.testDirectory, null, [prop: 'value'], mode(Exclusive), null, null)
    
            when:
            factory.open(tmpDir.testDirectory, null, [prop: 'other'], mode(Exclusive), null, null)
    
            then:
            IllegalStateException e = thrown()
            e.message == "Cache '${tmpDir.testDirectory}' is already open with different properties."
    
            cleanup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/GeneratedSingletonFileTreeSpec.groovy

        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
        def fileSystem = Stub(FileSystem)
    
        def "visiting creates file if visitor queries the file location"() {
            def contentWriter = Mock(Action)
            def generationListener = Mock(Action)
            def tmpDir = tmpDir.createDir("dir")
            def generatedFile = tmpDir.file("file.bin")
            def visitor = Mock(FileVisitor)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/phases/certs/certs_test.go

    	}
    
    	for _, test := range tests {
    		t.Run("", func(t *testing.T) {
    			tmpdir := testutil.SetupTempDir(t)
    			os.MkdirAll(tmpdir+"/etcd", os.ModePerm)
    			defer os.RemoveAll(tmpdir)
    
    			cfg := &kubeadmapi.ClusterConfiguration{
    				CertificatesDir: tmpdir,
    			}
    
    			// created expected keys
    			certstestutil.WritePKIFiles(t, tmpdir, test.files)
    
    			// executes create func
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  9. src/go/internal/gcimporter/gcimporter_test.go

    func mktmpdir(t *testing.T) string {
    	tmpdir, err := os.MkdirTemp("", "gcimporter_test")
    	if err != nil {
    		t.Fatal("mktmpdir:", err)
    	}
    	if err := os.Mkdir(filepath.Join(tmpdir, "testdata"), 0700); err != nil {
    		os.RemoveAll(tmpdir)
    		t.Fatal("mktmpdir:", err)
    	}
    	return tmpdir
    }
    
    func TestImportTestdata(t *testing.T) {
    	// This package only handles gc export data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/pkiutil/pki_helpers_test.go

    func TestWriteCert(t *testing.T) {
    	tmpdir, err := os.MkdirTemp("", "")
    	if err != nil {
    		t.Fatalf("Couldn't create tmpdir")
    	}
    	defer os.RemoveAll(tmpdir)
    
    	caCert := &x509.Certificate{}
    	actual := WriteCert(tmpdir, "foo", caCert)
    	if actual != nil {
    		t.Errorf(
    			"failed WriteCert with an error: %v",
    			actual,
    		)
    	}
    }
    
    func TestWriteCertBundle(t *testing.T) {
    	tmpdir, err := os.MkdirTemp("", "")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top