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

Function test_provenance_prompt_hash

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

Source from the content-addressed store, hash-verified

632
633#[test]
634fn test_provenance_prompt_hash() {
635 let session = make_session();
636 let event = make_event();
637 let options = make_options(&session, &event);
638
639 let prov = build_turn_provenance(&options);
640 assert!(prov.prompt.hash().is_some());
641 // Should be a hash, not the full text (privacy)
642 assert!(!prov.prompt.has_full_text());
643}
644
645#[test]
646fn 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