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

Function test_provenance_prompt_hash

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

Source from the content-addressed store, hash-verified

639
640#[test]
641fn test_provenance_prompt_hash() {
642 let session = make_session();
643 let event = make_event();
644 let options = make_options(&session, &event);
645
646 let prov = build_turn_provenance(&options);
647 assert!(prov.prompt.hash().is_some());
648 // Should be a hash, not the full text (privacy)
649 assert!(!prov.prompt.has_full_text());
650}
651
652#[test]
653fn test_provenance_no_prompt() {

Callers

nothing calls this directly

Calls 4

make_eventFunction · 0.85
make_optionsFunction · 0.85
build_turn_provenanceFunction · 0.85
make_sessionFunction · 0.70

Tested by

no test coverage detected