mirror of https://github.com/apache/cassandra
- CursorCompactionAllocationGateTest: extract withMeasurementEnv (the repeated preemptive-open/cursor-enabled save-set-restore boilerplate in every @Test), measureBest (the warmup/measured min-allocation loop), captureLastInputBytes, and dumpAllocationProfile (the JFR recording/dump block shared by the three diagnostic tests). No behavior change. - DifferentialCompactionTester: move the allJson helper (duplicated identically in PartialSetDifferentialCompactionTest and PurgeBoundaryDifferentialCompactionTest) to the shared base class and delete both copies. - RandomDifferentialCompactionTest: extract appendNames/appendEqPredicates/appendPlaceholders for the column-name-list and "name = ?" predicate-list building repeated across insertStmt/pkOnlyInsertStmt/updateStmt/cellDeleteStmt/rangeDeleteStmt/deleteStmt. Verified by rerunning the full differential suite (all 15 test classes). |
||
|---|---|---|
| .. | ||
| com/datastax/driver/core | ||
| org | ||