diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-18 16:57:10 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-18 16:57:10 +0000 |
| commit | 33530da5864245cc44e96c7a168ad806fdab6d98 (patch) | |
| tree | 62ac26b00f49610f18aaa69b296ec247656042d2 /docs/tutorials/getting-started.md | |
| parent | 203aae5e3fca0f6a2b4788c0941412367c162d42 (diff) | |
test: add unified run_sync_test() helper infrastructure
Add SyncTestResult struct and run_sync_test() helper function to
sync_helpers.rs for unified test setup. The helper automatically
determines sync mode (historic vs live) based on which event slice
has content.
Features:
- SyncTestResult: holds test fixtures (relays, keys, repo_coord)
- run_sync_test(): unified setup for both historic and live sync tests
- Panic guards for invalid usage (both slices or neither)
- Unit tests for panic conditions
Test results: 40 tests total, 38 passing (same as baseline)
- 2 pre-existing metric test failures (unchanged from baseline)
- All new panic condition tests passing
- No regressions introduced
Diffstat (limited to 'docs/tutorials/getting-started.md')
0 files changed, 0 insertions, 0 deletions