Skip to content

Commit

Permalink
Merge pull request #33047 from stuartwdouglas/27821
Browse files Browse the repository at this point in the history
Include classes touched by parent for testing
  • Loading branch information
gsmet authored Jun 6, 2023
2 parents ccea199 + 373286a commit 54b49ea
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@
public class TestClassUsages implements Serializable {

private final Map<ClassAndMethod, Set<String>> classNames = new HashMap<>();
private final Map<String, Set<String>> classLevel = new HashMap<>();

public synchronized void updateTestData(String currentclass, UniqueId test, Set<String> touched) {
classNames.put(new ClassAndMethod(currentclass, test), touched);
Set<String> aggregate = touched;
var extra = classLevel.get(currentclass);
if (extra != null) {
aggregate.addAll(extra);
}
classNames.put(new ClassAndMethod(currentclass, test), aggregate);
}

public synchronized void updateTestData(String currentclass, Set<String> touched) {
classNames.put(new ClassAndMethod(currentclass, null), touched);
classLevel.put(currentclass, touched);
}

public synchronized void merge(TestClassUsages newData) {
Expand Down

0 comments on commit 54b49ea

Please sign in to comment.