Skip to content

Commit

Permalink
minor: Fix sorting issue in pitest survival checking script
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyom-Yadav authored and nrmancuso committed Aug 10, 2022
1 parent 1c92749 commit 1d0cfe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ci/pitest-survival-check-xml.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private static int checkPitestReport(String profile, String flag) {
private static Set<Mutation> getSurvivingMutations(Node mainNode) {

final List<Node> children = mainNode.children()
final Set<Mutation> survivingMutations = new TreeSet<>()
final Set<Mutation> survivingMutations = new HashSet<>()

children.each { node ->
final Node mutationNode = node as Node
Expand All @@ -142,7 +142,7 @@ private static Set<Mutation> getSurvivingMutations(Node mainNode) {
*/
private static Set<Mutation> getSuppressedMutations(Node mainNode) {
final List<Node> children = mainNode.children()
final Set<Mutation> suppressedMutations = new TreeSet<>()
final Set<Mutation> suppressedMutations = new HashSet<>()

children.each { node ->
final Node mutationNode = node as Node
Expand Down Expand Up @@ -311,7 +311,7 @@ private static void printMutation(String flag, Mutation mutation) {
*/
private static Set<Mutation> setDifference(final Set<Mutation> setOne,
final Set<Mutation> setTwo) {
final Set<Mutation> result = new HashSet<>(setOne)
final Set<Mutation> result = new TreeSet<>(setOne)
result.removeIf { mutation -> setTwo.contains(mutation) }
return result
}
Expand Down

0 comments on commit 1d0cfe1

Please sign in to comment.