mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
We use `between(x, y)` calls with `switch` statements in tests to randomize test behaviour. However, some usages define `case` statements that can never execute, because the `case` value is outside the range defined by the `between` call. Write a rule that inspects the switches and the cases, and fails on the broken cases. This rule checks `between`, `randomIntBetween` and `randomInt`. |
||
---|---|---|
.. | ||
src/main/java/org/elasticsearch/gradle/internal | ||
build.gradle | ||
elastic.importorder | ||
formatterConfig.xml | ||
settings.gradle |