- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 901 for testFiles (0.18 sec)
-
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/DefaultFlatDirArtifactRepositoryTest.groovy
repo.dirs('a', 'b') same.dirs('a', 'b') different.dirs('a') and: _ * fileCollectionFactory.resolving(['a', 'b']) >> TestFiles.fixed(new File('a'), new File('b')) _ * fileCollectionFactory.resolving(['a']) >> TestFiles.fixed(new File('a')) expect: same.descriptor.id == repo.descriptor.id different.descriptor.id != repo.descriptor.id when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 4.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/process/internal/JavaExecHandleBuilderTest.groovy
JavaExecHandleBuilder builder = new JavaExecHandleBuilder( TestFiles.resolver(), TestFiles.fileCollectionFactory(), TestUtil.objectFactory(), Mock(Executor), new DefaultBuildCancellationToken(), temporaryFileProvider, null, TestFiles.execFactory().newJavaForkOptions() )
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 15 17:11:21 UTC 2023 - 7.5K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultCompositeFileTreeTest.groovy
class DefaultCompositeFileTreeTest extends WorkspaceTest { private DefaultCompositeFileTree newCompositeFileTree(List<? extends FileTreeInternal> fileTrees) { new DefaultCompositeFileTree(TestFiles.taskDependencyFactory(), TestFiles.patternSetFactory, fileTrees) } def "can be empty"() { when: def ft = newCompositeFileTree([]) then: ft.files.isEmpty() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.9K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/TestUtil.groovy
} static ObjectFactory objectFactory() { return services().get(ObjectFactory) } static ObjectFactory objectFactory(TestFile baseDir) { def fileResolver = TestFiles.resolver(baseDir) def fileCollectionFactory = TestFiles.fileCollectionFactory(baseDir) return createServices(fileResolver, fileCollectionFactory).get(ObjectFactory) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 13.2K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/AbstractFileSystemAccessTest.groovy
@Rule final TestNameTestDirectoryProvider temporaryFolder = new TestNameTestDirectoryProvider(getClass()) def fileHasher = new AllowingHasher(TestFiles.fileHasher()) def fileSystem = new AllowingStat(TestFiles.fileSystem()) def updateListener = Mock(FileSystemAccess.WriteListener) def statisticsCollector = Mock(DirectorySnapshotterStatistics.Collector)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:55 UTC 2024 - 6.3K bytes - Viewed (0) -
platforms/jvm/jvm-services/src/integTest/groovy/org/gradle/internal/jvm/inspection/DefaultJvmMetadataDetectorIntegrationTest.groovy
def "works on real installation"() { when: def detector = new DefaultJvmMetadataDetector( () -> new DefaultExecHandleBuilder(TestFiles.pathToFileResolver(), Executors.newCachedThreadPool()), TestFiles.tmpDirTemporaryFileProvider(new File(SystemProperties.getInstance().getJavaIoTmpDir())) )
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 18:25:34 UTC 2024 - 2K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy
visitor.visitOutputProperty("dir", TreeType.DIRECTORY, UnitOfWork.OutputFileValueSupplier.fromStatic(outputs.dir, TestFiles.fixed(outputs.dir))) visitor.visitOutputProperty("file", TreeType.FILE, UnitOfWork.OutputFileValueSupplier.fromStatic(outputs.file, TestFiles.fixed(outputs.file))) } _ * context.previousExecutionState >> Optional.of(previousExecutionState)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 8.3K bytes - Viewed (0) -
src/embed/internal/embedtest/embed_test.go
} //go:embed testdata var testDirAll embed.FS func TestDir(t *testing.T) { all := testDirAll testFiles(t, all, "testdata/hello.txt", "hello, world\n") testFiles(t, all, "testdata/i/i18n.txt", "internationalization\n") testFiles(t, all, "testdata/i/j/k/k8s.txt", "kubernetes\n") testFiles(t, all, "testdata/ken.txt", "If a program is too slow, it must have a loop.\n") testDir(t, all, ".", "testdata/")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 20:10:16 UTC 2023 - 5.4K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/configure/NativeComponentRulesTest.groovy
* limitations under the License. */ package org.gradle.nativeplatform.internal.configure import org.gradle.api.Named import org.gradle.api.internal.file.TestFiles import org.gradle.model.ModelMap import org.gradle.model.internal.core.ModelPath import org.gradle.model.internal.core.MutableModelNode import org.gradle.model.internal.manage.instance.ManagedInstance
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 6.8K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterAsDirectoryWalkerTest.groovy
} private DirectorySnapshotter directorySnapshotter() { new DirectorySnapshotter(TestFiles.fileHasher(), new StringInterner(), [], Stub(DirectorySnapshotterStatistics.Collector)) } private static List<FileVisitDetails> walkFiles(rootDir) { def fileTree = new DirectoryFileTree(rootDir, new PatternSet(), TestFiles.fileSystem(), false) def visited = [] def visitClosure = { visited << it }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:32 UTC 2023 - 4.5K bytes - Viewed (0)