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

Function secret_get_time

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

Source from the content-addressed store, hash-verified

655 #[tokio::test]
656 #[ignore = "not on ci"]
657 async fn secret_get_time() {
658 let key = "test_secret_get_time";
659 let store = Database::new().await.unwrap();
660 store.set_secret(key, "1234").await.unwrap();
661
662 let now = std::time::Instant::now();
663 for _ in 0..100 {
664 store.get_secret(key).await.unwrap();
665 }
666
667 println!("duration: {:?}", now.elapsed() / 100);
668
669 store.delete_secret(key).await.unwrap();
670 }
671
672 #[tokio::test]
673 #[ignore = "not on ci"]

Callers

nothing calls this directly

Calls 3

set_secretMethod · 0.80
get_secretMethod · 0.80
delete_secretMethod · 0.80

Tested by

no test coverage detected