mirror of
https://github.com/narrrl/proton-sdk-rs.git
synced 2026-11-04 00:47:01 +01:00
fmt + Clippy
This commit is contained in:
1 parent
ec590fd52b
commit
e2f5ab7ad6
17 files changed
+263
-158
No files matched your search
@@ -392,7 +392,10 @@ mod tests {
|
||||
async fn encrypted_round_trips_and_hides_plaintext() {
|
||||
let inner = InMemoryCacheRepository::shared();
|
||||
let cache = EncryptedCacheRepository::new(inner.clone(), b"hunter2-master-key".to_vec());
|
||||
cache.set("share:1", "secret-value", &tags(&["t"])).await.unwrap();
|
||||
cache
|
||||
.set("share:1", "secret-value", &tags(&["t"]))
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
// Stored ciphertext is not the plaintext.
|
||||
let stored = inner.get("share:1").await.unwrap().unwrap();
|
||||
@@ -405,7 +408,10 @@ mod tests {
|
||||
);
|
||||
// Tags pass through to the inner store.
|
||||
let by_tag = cache.get_by_tags(&tags(&["t"])).await.unwrap();
|
||||
assert_eq!(by_tag, vec![("share:1".to_string(), "secret-value".to_string())]);
|
||||
assert_eq!(
|
||||
by_tag,
|
||||
vec![("share:1".to_string(), "secret-value".to_string())]
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in new issue
Block a user