- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 97 for toList (0.64 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ConventionAwareHelperTest.java
assertThat(conventionAware.getConventionValue(null, "list1", false), equalTo((Object) toList("a"))); conventionAware.map("list1", TestUtil.toClosure("{ convention -> [convention] }")); assertThat(conventionAware.getConventionValue(null, "list1", false), equalTo((Object) toList(conventionAware.getConvention())));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/GeneratedSingletonFileTreeTest.java
MinimalFileTree tree = tree("file.txt", action); assertVisits(tree, toList("file.txt"), Collections.<String>emptyList()); TestFile file = rootDir.file("file.txt"); file.assertContents(equalTo("content")); file.makeOlder(); TestFile.Snapshot snapshot = file.snapshot(); assertVisits(tree, toList("file.txt"), Collections.<String>emptyList());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractFileSystemNodeWithChildrenTest.groovy
['name/some', 'name2/other'], ['name', 'name1/some', 'name2/other/third'], ['aa/b1', 'ab/a1', 'name', 'name1/some', 'name2/other/third'], ("a".."z").toList(), ("a".."z").collect { "$it/$it".toString() }.toList(), ] /** * The queried/updated path has no common prefix with any of the initial children of the node under test. * * E.g. * path: 'name0/some
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 9.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleSourceDetectorTest.groovy
static class B extends RuleSource {} static class A extends RuleSource {} } def "find model rule sources - #clazz"() { expect: detector.getDeclaredSources(clazz).toList() == expected where: clazz | expected String | [] HasOneSource | [HasOneSource.Source] HasTwoSources | [HasTwoSources.SourceOne, HasTwoSources.SourceTwo]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelPathTest.groovy
expect: path.toString() == "<root>" path.toList() == [] path.name == "" path.size() == 0 path.parent == null path.rootParent == null } def "path with single component is top level"() { def path = ModelPath.path("p") expect: path.toString() == "p" path.toList() == ["p"] path.name == "p" path.size() == 1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.1K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleKotlinDslRuntimeGeneratedSources.java
import org.gradle.kotlin.dsl.provider.KotlinScriptClassPathProvider; import javax.inject.Inject; import java.io.File; import static com.google.common.collect.Iterables.getOnlyElement; import static java.util.stream.Collectors.toList; /** * Extracts Kotlin DSL runtime generated sources. * * Current implementation extracts these from the wrapper's API jars. * This is not correct as it should do this with the built distribution instead. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Mar 19 17:15:23 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/UnionFileCollectionTest.groovy
def source1 = new TestFileCollection(file1, file2) def source2 = new TestFileCollection(file2, file3) expect: def collection = newUnionFileCollection(source1, source2) collection.files.toList() == [file1, file2, file3] collection.sourceCollections == [source1, source2] } def contentsTrackContentsOfSourceCollections() { def source1 = Mock(FileCollectionInternal)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-tooling-builders/src/testFixtures/groovy/org/gradle/kotlin/dsl/tooling/fixtures/KotlinScriptModelParameters.groovy
"-Dorg.gradle.internal.plugins.portal.url.override=${gradlePluginRepositoryMirrorUrl()}".toString()] if (!scripts.toList().isEmpty()) { arguments += "-P${KotlinDslScriptsModel.SCRIPTS_GRADLE_PROPERTY_NAME}=${scripts.toList().collect { it.canonicalPath }.join("|")}".toString() } modelBuilder.withArguments(arguments) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Nov 21 09:28:30 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/DataSchemaBuilder.kt
val constructors = functionExtractor.constructors(kClass, preIndex) val name = kClass.fqName return DefaultDataClass(name, supertypesOf(kClass), properties, functions.toList(), constructors.toList()) } private fun supertypesOf(kClass: KClass<*>): Set<FqName> = buildSet { fun visit(supertype: KType) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:02 UTC 2024 - 5.9K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/DirectoryNodeTest.groovy
resultRoot instanceof PartialDirectoryNode resultRoot.children == children removedNodes == [initialRoot.getSnapshot().get()] addedNodes == children.stream().map(ChildMap.Entry::getValue).toList() interaction { noMoreInteractions() } where: vfsSpec << onlyDirectChildren(NO_COMMON_PREFIX) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 9.2K bytes - Viewed (0)