MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / test_set_password

Function test_set_password

crates/chat-cli/src/database/mod.rs:647–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

645 #[tokio::test]
646 #[ignore = "not on ci"]
647 async fn test_set_password() {
648 let key = "test_set_password";
649 let store = Database::new().await.unwrap();
650 store.set_secret(key, "test").await.unwrap();
651 assert_eq!(store.get_secret(key).await.unwrap().unwrap().0, "test");
652 store.delete_secret(key).await.unwrap();
653 }
654
655 #[tokio::test]
656 #[ignore = "not on ci"]

Callers

nothing calls this directly

Calls 2

set_secretMethod · 0.80
delete_secretMethod · 0.80

Tested by

no test coverage detected