cassandra/test/unit
Jon Haddad 8f88969e61 Simplify differential test helpers: extract shared measurement/SQL-building code
- 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).
2026-07-28 08:18:29 -07:00
..
com/datastax/driver/core Remove remaining driver dependencies from server code 2025-03-17 21:55:38 +01:00
org Simplify differential test helpers: extract shared measurement/SQL-building code 2026-07-28 08:18:29 -07:00