- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 355 for createFile2 (0.33 sec)
-
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterStatisticsTest.groovy
def "can visit directory hierarchy"() { given: def root = tmpDir.createDir("root") def subDir1 = root.createDir("sub-dir-1") subDir1.createFile("file.txt") def subDir2 = root.createDir("sub-dir-2") subDir2.createFile("file.txt") when: snapshot(root) then: 1 * statisticsCollector.recordVisitHierarchy() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:32 UTC 2023 - 5.1K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/nio/ModificationTimeFileAccessTimeJournalTest.groovy
def "updates modification time"() { given: def file = tmpDir.createFile("file") when: journal.setLastAccessTime(file, FIXED_TIMESTAMP) then: file.lastModified() == FIXED_TIMESTAMP } def "reads modification time"() { given: def file = tmpDir.createFile("file") file.lastModified = FIXED_TIMESTAMP when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:57 UTC 2024 - 1.6K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/tasks/DeleteTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 20 11:15:22 UTC 2023 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/egressselector/config_test.go
name string contents string createFile bool expectedResult *apiserver.EgressSelectorConfiguration expectedError *string }{ { name: "empty", createFile: true, contents: ``, expectedResult: nil, expectedError: strptr("invalid service configuration object \"\""), }, { name: "absent", createFile: false, contents: ``,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 15.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r24/BuildInvocationsCrossVersionSpec.groovy
def "set task selector description taken from task with path that has lowest ordering"() { temporaryFolder.createFile('settings.gradle') << ''' rootProject.name = 'TestProject' include 'sub' ''' temporaryFolder.createFile('build.gradle') << ''' task alpha { description = 'ALPHA from root project' } task beta {}
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/WindowsKitWindowsSdkLocatorTest.groovy
} def kitDir(String name, String... versions) { def dir = tmpDir.createDir(name) PLATFORMS.each { dir.createFile("bin/${it}/rc.exe") } versions.each { version -> dir.createFile("Include/${version}/um/windows.h") PLATFORMS.each { dir.createFile("Lib/${version}/um/${it}/kernel32.lib") } } return dir }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 16.3K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy
fileCollection.from(sourceDirs.srcDirTrees) println("files = \${fileCollection.files.name.sort()}") """ given: file("dir1/file1").createFile() file("dir1/file2").createFile() file("dir2/sub/file3").createFile() expect: succeeds() outputContains("files = [file1, file2, file3]") } def "can view the elements of file collection as a Provider"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 12:54:09 UTC 2024 - 21K bytes - Viewed (0) -
platforms/native/language-native/src/test/groovy/org/gradle/language/c/tasks/CCompileTest.groovy
pch.objectFile >> temporaryFolder.file("pchObjectFile").createFile() pch.name >> "testPch" pch.projectPath >> ":" pch.includeString >> "header" pch.prefixHeaderFile >> temporaryFolder.file("prefixHeader").createFile() pch.pchObjects >> TestFiles.empty() 1 * cCompiler.execute({ CCompileSpec spec ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.6K bytes - Viewed (0) -
platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdaterTest.groovy
def watchableHierarchy = file("watchable").createDir() def watchableContent = watchableHierarchy.file("some/dir/file.txt").createFile() def unsupportedFileSystemMountPoint = watchableHierarchy.file("unsupported") def unwatchableContent = unsupportedFileSystemMountPoint.file("some/file.txt").createFile() when: registerWatchableHierarchies([watchableHierarchy])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 23 13:24:54 UTC 2024 - 12K bytes - Viewed (0) -
platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/S3ClientIntegrationTest.groovy
def "should perform #authenticationType put get and list on an S3 bucket"() { setup: def fileContents = 'This is only a test' File file = temporaryFolder.createFile(FILE_NAME) file << fileContents def directSubdirectories = ['some-dir', 'second-dir', 'some-other-dir'] directSubdirectories.each { temporaryFolder.createDir(it) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 9.8K bytes - Viewed (0)