- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 3,101 for defn (0.07 sec)
-
subprojects/core/src/test/groovy/org/gradle/api/internal/file/DefaultProjectLayoutTest.groovy
} def "can view directory as a file tree"() { def dir1 = projectDir.createDir("dir1") def file1 = dir1.createFile("sub-dir/file1") def file2 = dir1.createFile("file2") def dir2 = projectDir.createDir("dir2") def file3 = dir2.createFile("other/file3") expect: def tree1 = layout.projectDirectory.dir("dir1").asFileTree
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 23 16:13:03 UTC 2022 - 9.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy
setup: def testFile = folder.createFile("test1") def notation = Stub(Directory) notation.asFile >> testFile when: def object = parse(notation) then: object == testFile } def "with TextResource returns the underlying File"() { setup: def testFile = folder.createFile("test1")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 19 16:59:26 UTC 2023 - 5.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/AbstractPropertySpec.groovy
def property = propertyWithValue(someValue()) expect: property.type == property.shallowCopy().type } def "shallow copy inherits dependencies of the original"() { given: def task = Mock(Task) def provider = supplierWithProducer(task) def property = propertyWithNoValue() property.set(provider) expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 07 12:47:05 UTC 2024 - 6.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/queue/MultiChannelQueueTest.groovy
def id1 = new ChannelIdentifier("channel1") def id2 = new ChannelIdentifier("channel2") def message1 = new ChannelMessage(id1, "message 1") def message2 = broadcast() given: def endpoint1 = queue.getChannel(id1).newEndpoint() def endpoint2 = queue.getChannel(id2).newEndpoint() when: def messages1 = [] def messages2 = [] queue.queue(message1)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 4.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/state/DefaultManagedFactoryRegistryTest.groovy
def barFactory = factory(Bar) def buzzFactory = factory(Buzz) registry.withFactories(barFactory, fooFactory) expect: registry.lookup(buzzFactory.id) == null } def "can lookup factory in parent registry"() { def fooFactory = factory(Foo) def barFactory = factory(Bar) def parent = new DefaultManagedFactoryRegistry().withFactories(fooFactory)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.2K bytes - Viewed (0) -
tests/test_params_repr.py
"Query(Ellipsis)", ) def test_query_repr_number(): assert repr(Query(1)) == "Query(1)" def test_query_repr_list(): assert repr(Query([])) == "Query([])" def test_header_repr_str(): assert repr(Header("teststr")) == "Header(teststr)" def test_header_repr_none(): assert repr(Header(None)) == "Header(None)" def test_header_repr_ellipsis():
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 3.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/initialization/layout/BuildLayoutFactoryTest.groovy
given: def locator = buildLayoutFactoryFor() and: "temporary tree created out of the Gradle build tree" def tmpDir = File.createTempFile("stop-", "-at").canonicalFile def stopAt = new File(tmpDir, 'stopAt') def currentDir = new File(new File(stopAt, "intermediate"), 'current') currentDir.mkdirs() expect: def layout = locator.getLayoutFor(currentDir, true)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 25 09:18:31 UTC 2024 - 6.9K bytes - Viewed (0) -
platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/processing/AnnotationProcessorDetectorTest.groovy
} def "detects no processors when processor declaration is missing"() { given: def jar = tmpDir.file("classes.jar") jar << JarUtils.jarWithContents() def dir = tmpDir.file("classes") def cp = files(jar, dir) expect: detector.detectProcessors(cp) == [:] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 20 10:14:55 UTC 2024 - 8.8K bytes - Viewed (0) -
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")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 7.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/cache/internal/VersionSpecificCacheCleanupActionTest.groovy
def userHomeDir = temporaryFolder.createDir("user-home") def currentCacheDir = createVersionSpecificCacheDir(currentVersion, NOT_USED_WITHIN_30_DAYS) def progressMonitor = Mock(CleanupProgressMonitor) def deleter = TestFiles.deleter()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 08 17:27:30 UTC 2022 - 7.8K bytes - Viewed (0)