Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,175 for createfing (0.53 sec)

  1. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

            dir.file("someFile").createFile()
    
            when:
            boolean didWork = deleter.deleteRecursively(dir)
    
            then:
            dir.assertDoesNotExist()
            didWork
        }
    
        def "deletes file"() {
            given:
            TestFile dir = tmpDir.getTestDirectory()
            TestFile file = dir.file("someFile")
            file.createFile()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractCacheCleanupTest.groovy

        def deletedFiles = []
    
        def "deletes non-reserved matching files"() {
            def cacheEntries = [
                temporaryFolder.createFile("1"),
                temporaryFolder.createFile("2"),
                temporaryFolder.createFile("3"),
            ]
    
            when:
            cleanupAction(finder(cacheEntries), { it != cacheEntries[2] })
                .clean(cleanableStore, progressMonitor)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/initialization/layout/BuildLayoutFactoryTest.groovy

            given:
            def locator = buildLayoutFactoryFor()
    
            and:
            def currentDir = tmpDir.createDir("sub/current")
            def settingsFile = currentDir.createFile(settingsFilename)
            tmpDir.createFile("sub/$settingsFilename")
            tmpDir.createFile(settingsFilename)
    
            expect:
            def layout = locator.getLayoutFor(currentDir, true)
            layout.rootDirectory == currentDir
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. src/os/stat_windows.go

    			}
    			return fs, nil
    		}
    	}
    
    	// Use CreateFile to determine whether the file is a name surrogate and, if so,
    	// save information about the link target.
    	// Set FILE_FLAG_BACKUP_SEMANTICS so that CreateFile will create the handle
    	// even if name refers to a directory.
    	var flags uint32 = syscall.FILE_FLAG_BACKUP_SEMANTICS | syscall.FILE_FLAG_OPEN_REPARSE_POINT
    	h, err := syscall.CreateFile(namep, 0, 0, nil, syscall.OPEN_EXISTING, flags, 0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy

        def "with File returns this File"() {
            setup:
            def testFile = folder.createFile("test1")
            when:
            def object = parse(testFile)
            then:
            object instanceof File
            testFile == object
        }
    
        def "with Path returns the File it represents"() {
            setup:
            def testPath = folder.createFile("test1").toPath()
            when:
            def object = parse(testPath)
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 16:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultArtifactCacheLockingAccessCoordinatorTest.groovy

        def "cleans up resources"() {
            given:
            def file1 = resourcesDir.createDir("1/abc").createFile("test.txt")
            def file2 = resourcesDir.createDir("1/xyz").createFile("test.txt")
            def file3 = resourcesDir.createDir("2/uvw").createFile("test.txt")
            file2.parentFile.lastModified = 0
            file3.parentFile.lastModified = 0
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/tracing_test.go

    		name           string
    		contents       string
    		createFile     bool
    		expectedResult *tracingapi.TracingConfiguration
    		expectedError  *string
    	}{
    		{
    			name:           "empty",
    			createFile:     true,
    			contents:       ``,
    			expectedResult: &tracingapi.TracingConfiguration{},
    			expectedError:  nil,
    		},
    		{
    			name:           "absent",
    			createFile:     false,
    			contents:       ``,
    			expectedResult: nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/SourceTaskIntegrationTest.groovy

    class SourceTaskIntegrationTest extends AbstractIntegrationSpec {
        def "can specify source files using a Groovy closure"() {
            given:
            file("src/one.txt").createFile()
            file("src/a/two.txt").createFile()
    
            buildFile << """
                class TestTask extends SourceTask {
                    @TaskAction
                    def list() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 28 09:46:40 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/internal/cache/CacheConfigurationsCompositeBuildTest.groovy

            def initDir = gradleUserHomeDir.createDir('init.d')
            initDir.createFile('broken.gradle') << """
                throw new Exception('BOOM!')
            """
    
            file('foo').createDir().createFile('settings.gradle')
            file('bar').createDir().createFile('settings.gradle')
            settingsFile << """
                includeBuild('foo')
                includeBuild('bar')
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 20:02:29 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/testing/zz_generated.deepcopy.go

    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedTest.
    func (in *EmbeddedTest) DeepCopy() *EmbeddedTest {
    	if in == nil {
    		return nil
    	}
    	out := new(EmbeddedTest)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    func (in *EmbeddedTest) DeepCopyObject() runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 17.8K bytes
    - Viewed (0)
Back to top