- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ValueSupplier (0.25 sec)
-
subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy
when: def result = toList(container) then: result == iterationOrder(b, a, d, c) and: 1 * provider1.calculateValue(_) >> ValueSupplier.Value.of(a) 1 * provider2.calculateValue(_) >> ValueSupplier.Value.of(d) 0 * _ } def "provider for iterable of elements is queried when elements iterated and insertion order is retained"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 13:46:07 UTC 2024 - 52.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy
then: 1 * valueProvider.calculateValue(_) >> ValueSupplier.Value.of(['k1': 'v1']) 1 * putProvider.calculateValue(_) >> ValueSupplier.Value.of('v2') 1 * putAllProvider.calculateValue(_) >> ValueSupplier.Value.of(['k3': 'v3']) 0 * _ when: property.getOrNull() then: 1 * valueProvider.calculateValue(_) >> ValueSupplier.Value.of(['k1': 'v1'])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 58.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy
then: 1 * valueProvider.calculateValue(_) >> ValueSupplier.Value.of(["1"]) 1 * addProvider.calculateValue(_) >> ValueSupplier.Value.of("2") 1 * addAllProvider.calculateValue(_) >> ValueSupplier.Value.of(["3"]) 0 * _ when: property.getOrNull() then: 1 * valueProvider.calculateValue(_) >> ValueSupplier.Value.of(["1"])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 49.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy
when: def sideEffect = Mock(ValueSupplier.SideEffect) def providerWithSideEffect = Providers.of(someValue()).withSideEffect(sideEffect) // `PropertyInternal` does not directly provide these setters, // but all user-facing interfaces and their implementations do. property."$setter"(providerWithSideEffect) property.calculateValue(ValueSupplier.ValueConsumer.IgnoreUnsafeRead)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 87.8K bytes - Viewed (0)