# Testing Quick Reference

Full detail: `docs/TESTING.md`, `docs/patterns/testing.md`.

## Architecture
- Inline `#[cfg(test)]` units + `tests/` integration.
- **Deterministic crypto test vectors** committed for every handshake/ratchet step.
- **Property/fuzz tests** for ratchet invariants: survives out-of-order, dropped messages, reconnects — no desync/loss.
- Adverse-network transport tests over Tor.

## Commands
```bash
cargo test                 # workspace
cargo llvm-cov --html      # coverage
```

## Common Mistakes
- Writing tests but not running them (Stop hook warns).
- Secrets in test output/logs.
- Skipping the out-of-order/dropped-message ratchet cases (the #1 correctness target).

## Full Patterns
→ `docs/patterns/testing.md`.
