mirror of
https://github.com/block/buzz.git
synced 2026-10-31 22:41:12 +00:00
The commit path in import_identity_blocking resolved app_data_dir() and SecretStore::shared() internally, so a mock-driven fixture that drives the coordinator to a durable commit would write under the real ~/Library/Application Support and bind the process-global keychain. Hoist both durable-persist inputs — data_dir: PathBuf and store: &impl IdentityKeyStore — to the run_identity_transition boundary; both production callers (import_identity, import_recovered_identity) pass the real values they resolved before. This is dependency injection of genuine persist inputs (the downstream persist_imported_identity/classifier already take exactly these), not a test-only abstraction: it lets §7's no-scope and None->Some activation-race fixtures drive a real commit hermetically against a tempdir and a fake store. Zero logic change; monomorphized call sites are behavior-neutral. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>