- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for CollectingChangeVisitor (0.47 sec)
-
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/CollectingChangeVisitor.java
* limitations under the License. */ package org.gradle.internal.execution.history.changes; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class CollectingChangeVisitor implements ChangeVisitor { private List<Change> changes = new ArrayList<Change>(); @Override public boolean visitChange(Change change) { changes.add(change); return true; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 1K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/CachingChangeContainerTest.groovy
def change3 = Mock(Change) def cachingChanges = new CachingChangeContainer(2, delegate) def collectingVisitor = new CollectingChangeVisitor() def "caches all reported changes under cache size"() { when: cachingChanges.accept(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) -
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/IncrementalInputChanges.java
CollectingChangeVisitor visitor = new CollectingChangeVisitor(); changes.accept(propertyName, visitor); return Cast.uncheckedNonnullCast(visitor.getChanges()); } @Override public Iterable<InputFileDetails> getAllFileChanges() { CollectingChangeVisitor visitor = new CollectingChangeVisitor(); changes.accept(visitor);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 2.3K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/LimitingChangeVisitorTest.groovy
*/ package org.gradle.internal.execution.history.changes 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)
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/SummarizingChangeContainerTest.groovy
def state1 = Mock(ChangeContainer) def state2 = Mock(ChangeContainer) def state = new SummarizingChangeContainer(state1, state2) def visitor = new CollectingChangeVisitor() def "looks for changes in all delegate change sets"() { when: state.accept(visitor) then: 1 * state1.accept(_) >> true 1 * state2.accept(_) >> true
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/ImplementationChangesTest.groovy
ClassImplementationSnapshot currentImpl, List<ClassImplementationSnapshot> currentAdditionalImpls ) { def visitor = new CollectingChangeVisitor() new ImplementationChanges( previousImpl, ImmutableList.copyOf(previousAdditionalImpls), currentImpl, ImmutableList.copyOf(currentAdditionalImpls), executable
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/OutputFileChangesTest.groovy
regularFile("${absolutePath}/two", 0x2345) ]) } def changes(FileSystemSnapshot previousSnapshot, FileSystemSnapshot currentSnapshot) { def visitor = new CollectingChangeVisitor() def outputFileChanges = new OutputFileChanges(ImmutableSortedMap.of("test", previousSnapshot), ImmutableSortedMap.of("test", currentSnapshot)) outputFileChanges.accept(visitor)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 7.3K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/ClasspathCompareStrategyTest.groovy
} def changes(Map<String, FileSystemLocationFingerprint> current, Map<String, FileSystemLocationFingerprint> previous) { def visitor = new CollectingChangeVisitor() def strategyConfigurationHash = TestHashCodes.hashCodeFrom(1234)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 8.6K bytes - Viewed (0)