The real_ prefix was misleading — there is no fake data loader. Mechanical rename across 18 source files, no logic changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
test-common
Shared test fixtures, builders, and assertions for the Foxhunt workspace. Consolidates duplicate test code across 39+ files.
Key Types
TestDb-- isolated test database with automatic cleanupMockOrderBuilder-- fluent order/trade builderBarBuilder-- OHLCV bar generation with realistic price movementsPositionBuilder-- mock positions with P&L calculations
Fixtures
generate_ohlcv_bars()-- realistic OHLCV datagenerate_random_walk()-- Monte Carlo price simulationsgenerate_crisis_returns()-- 2008 crisis patternsgenerate_order_book()-- order book levels
Assertions
assert_approx_eq!-- percentage tolerance comparisonassert_ohlc_valid-- OHLC bar validationassert_var_exceedances-- VaR exceedance checks
Usage
[dev-dependencies]
test_common = { path = "../../testing/test-common" }