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

Function test_envelope_prompt_hash

atomic-agent/src/record/tests.rs:813–822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

811
812#[test]
813fn test_envelope_prompt_hash() {
814 let session = make_session();
815 let event = make_event();
816 let options = make_options(&session, &event);
817
818 let env = build_turn_envelope(&options, &[]);
819 assert!(env.prompt_hash.is_some());
820 let expected = blake3::hash(b"Fix the authentication bug in login.rs");
821 assert_eq!(env.prompt_hash.unwrap(), *expected.as_bytes());
822}
823
824#[test]
825fn test_envelope_no_prompt() {

Callers

nothing calls this directly

Calls 5

make_eventFunction · 0.85
make_optionsFunction · 0.85
build_turn_envelopeFunction · 0.85
make_sessionFunction · 0.70
hashFunction · 0.50

Tested by

no test coverage detected