- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for LimitingChangeVisitor (0.46 sec)
-
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/LimitingChangeVisitor.java
* limitations under the License. */ package org.gradle.internal.execution.history.changes; public class LimitingChangeVisitor implements ChangeVisitor { private final int maxReportedChanges; private final ChangeVisitor delegate; private int visited; public LimitingChangeVisitor(int maxReportedChanges, ChangeVisitor delegate) { this.maxReportedChanges = maxReportedChanges;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/LimitingChangeVisitorTest.groovy
import spock.lang.Specification class LimitingChangeVisitorTest extends Specification { def collectingVisitor = new CollectingChangeVisitor() def visitor = new LimitingChangeVisitor(2, collectingVisitor) def "will not accept more changes than specified"() { def change1 = Mock(Change) def change2 = Mock(Change) expect: visitor.visitChange(change1)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/CachingChangeContainerTest.groovy
} 0 * _ and: reported == [change3, change2, change1] } def "does not cache if visitor aborts visiting"() { when: cachingChanges.accept(new LimitingChangeVisitor(2, new CollectingChangeVisitor())) then: interaction { receivesChanges(change1, change2) } 0 * _ when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 3K bytes - Viewed (0)