Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for onAccess (0.17 sec)

  1. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

            containsResult == expectedResult
            1 * onAccess.accept(key, reportedValue)
            0 * onAccess._
    
            when:
            def containsAllResult = getMapUnderTestToRead().stringPropertyNames().containsAll(Collections.singleton(key))
    
            then:
            containsAllResult == expectedResult
            1 * onAccess.accept(key, reportedValue)
            0 * onAccess._
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ProblemReportingCrossProjectModelAccess.kt

            override fun getDescription(): String? {
                onAccess("description")
                return delegate.description
            }
    
            override fun setDescription(description: String?) {
                onAccess("description")
                delegate.description = description
            }
    
            override fun getGroup(): Any {
                onAccess("group")
                return delegate.group
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AbstractAccessTrackingMapTest.groovy

            then:
            !result
            1 * onAccess.accept('missing', null)
            0 * onAccess._
        }
    
        def "aggregating method #methodName reports all map contents as inputs"() {
            when:
            operation.accept(getMapUnderTestToRead())
    
            then:
            (1.._) * onAccess.accept('existing', 'existingValue')
            (1.._) * onAccess.accept('other', 'otherValue')
            0 * onAccess._
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesNonStringTest.groovy

            getMapUnderTestToRead().forEach(iterated::put)
    
            then:
            iterated.keySet() == innerMap.keySet()
            1 * listener.onAccess(EXISTING_KEY, EXISTING_VALUE)
            1 * listener.onAccess('existing', 'existingStringValue')
            1 * listener.onAccess('keyWithNonStringValue', NON_STRING_VALUE)
            0 * listener._
        }
    
        def "entrySet() enumeration is tracked for non-strings"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingSetTest.groovy

            result
            1 * listener.onAccess('existing')
            1 * listener.onAccess('other')
            0 * listener._
        }
    
        def "containsAll of missing elements is tracked"() {
            when:
            def result = set.containsAll(Arrays.asList('missing', 'alsoMissing'))
    
            then:
            !result
            1 * listener.onAccess('missing')
            1 * listener.onAccess('alsoMissing')
            0 * listener._
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/CrossProjectModelAccessTrackingParentDynamicObject.kt

            onAccess(MemberKind.PROPERTY, name)
            return delegate.hasProperty(name)
        }
    
        override fun tryGetProperty(name: String): DynamicInvokeResult {
            onAccess(MemberKind.PROPERTY, name)
            return delegate.tryGetProperty(name)
        }
    
        override fun trySetProperty(name: String, value: Any?): DynamicInvokeResult {
            onAccess(MemberKind.PROPERTY, name)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingEnvMap.java

        private final BiConsumer<? super String, ? super String> onAccess;
    
        public AccessTrackingEnvMap(BiConsumer<String, String> onAccess) {
            this(System.getenv(), onAccess);
        }
    
        @VisibleForTesting
        public AccessTrackingEnvMap(Map<String, String> delegate, BiConsumer<? super String, ? super String> onAccess) {
            this.delegate = delegate;
            this.onAccess = onAccess;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingSet.java

            boolean result = delegate.contains(o);
            listener.onAccess(o);
            return result;
        }
    
        @Override
        public boolean containsAll(@Nonnull Collection<?> collection) {
            boolean result = delegate.containsAll(collection);
            for (Object o : collection) {
                listener.onAccess(o);
            }
            return result;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingEnvMapTest.groovy

            return new AccessTrackingEnvMap(new StubEnvMap(), onAccess)
        }
    
        def "access to non-string element with containsKey throws"() {
            when:
            getMapUnderTestToRead().containsKey(Integer.valueOf(5))
    
            then:
            thrown(RuntimeException)
            0 * onAccess._
        }
    
        private class StubEnvMap extends ForwardingMap<String, String> {
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingProperties.java

             */
            void onAccess(Object key, @Nullable Object value);
    
            /**
             * Called when the property with the name {@code key} is updated or added. The {@code newValue} is the new value of the property provided by
             * the caller. If the modifying method provides a way for the caller to observe a previous value of the key then
             * {@link #onAccess(Object, Object)} method is called prior to this method.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:51 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top