refactor: extract inline tests to separate files in auth + storage adapters

This commit is contained in:
2026-05-31 11:16:18 +02:00
parent aff772f6d7
commit 6c88ac344c
7 changed files with 230 additions and 231 deletions

View File

@@ -0,0 +1,10 @@
use adapters_auth::BcryptPasswordHasher;
use domain::ports::PasswordHasher;
#[tokio::test]
async fn hash_and_verify_roundtrip() {
let h = BcryptPasswordHasher;
let hash = h.hash("mysecretpassword").await.unwrap();
assert!(h.verify("mysecretpassword", &hash).await.unwrap());
assert!(!h.verify("wrongpassword", &hash).await.unwrap());
}