MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_builder_prompt_hash_from_text

Function test_builder_prompt_hash_from_text

atomic-agent/src/envelope.rs:641–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

639
640 #[test]
641 fn test_builder_prompt_hash_from_text() {
642 let e = SessionEnvelope::builder("s", "a")
643 .prompt_hash_from_text("Fix the bug")
644 .build();
645
646 assert!(e.prompt_hash.is_some());
647 let expected = blake3::hash(b"Fix the bug");
648 assert_eq!(e.prompt_hash.unwrap(), *expected.as_bytes());
649 }
650
651 #[test]
652 fn test_builder_prompt_hash_direct() {

Callers

nothing calls this directly

Calls 3

hashFunction · 0.85
prompt_hash_from_textMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected