yifan-c commented on code in PR #171:
URL: https://github.com/apache/cassandra-sidecar/pull/171#discussion_r1955381677


##########
server-common/src/test/java/org/apache/cassandra/sidecar/common/server/cluster/locator/TokenRangeTest.java:
##########
@@ -159,6 +165,66 @@ void testIntersection()
         assertThat(r2.intersection(r4)).isNotEqualTo(new TokenRange(5, 5)); // 
but not any empty range
     }
 
+    @ParameterizedTest(name = "{index} - {0}: inputLeft={1} inputRight={2} 
expectedLeft={3} expectedRight={4}")
+    @MethodSource("inputAndExpectedResultAfterDiff")
+    void testDiff(String testTitle, Set<TokenRange> left, Set<TokenRange> 
right, Set<TokenRange> expectedLeft, Set<TokenRange> expectedRight)

Review Comment:
   no. It is only used to display in the test runner output.
   
   For example, "Diff on identical sets:" in the below output.
   
   ```
   1 - Diff on identical sets: inputLeft=[TokenRange(0, 1000], TokenRange(1000, 
2000]] inputRight=[TokenRange(0, 2000]] expectedLeft=[] expectedRight=[]
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to