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

Function test_append_idempotent_on_existing_dir

atomic-agent/src/export.rs:755–767  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

753
754 #[test]
755 fn test_append_idempotent_on_existing_dir() {
756 let graph = sherpa_graph();
757 let tmp = tempfile::tempdir().unwrap();
758
759 // Pre-create the directory — should not error
760 std::fs::create_dir_all(tmp.path().join(".agent-trace")).unwrap();
761
762 let record = to_agent_trace_record(&graph, tmp.path());
763 append_agent_trace(&record, tmp.path());
764
765 let path = tmp.path().join(".agent-trace").join("traces.jsonl");
766 assert!(path.exists());
767 }
768
769 #[test]
770 fn test_non_sherpa_graph_still_has_dev_atomic() {

Callers

nothing calls this directly

Calls 5

sherpa_graphFunction · 0.85
to_agent_trace_recordFunction · 0.85
append_agent_traceFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected