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

Function test_provenance_prompt_hash

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

Source from the content-addressed store, hash-verified

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