* refactor: split mock-tauri.ts into focused modules The monolithic mock-tauri.ts (1927 lines, Code Health 8.8) is now split into 5 cohesive modules under src/mock-tauri/: - index.ts (barrel, isTauri, simplified mockInvoke) — 10.0 - mock-content.ts (markdown test data) — 10.0 - mock-entries.ts (VaultEntry[] + bulk generator) — 10.0 - mock-handlers.ts (command handlers + state) — 9.68 - vault-api.ts (vault API detection + proxy) — 10.0 Key improvements: - mockInvoke complexity reduced from cc=17 to trivial (vault API extracted to tryVaultApi, conditional routing via data-driven map) - save_settings complexity reduced via trimOrNull helper - All 726 tests pass unchanged, coverage remains above 70% - Public API surface is identical (no import changes needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * style: cargo fmt --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
30 KiB
30 KiB