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:736–748  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

734
735 #[test]
736 fn test_append_idempotent_on_existing_dir() {
737 let graph = sherpa_graph();
738 let tmp = tempfile::tempdir().unwrap();
739
740 // Pre-create the directory — should not error
741 std::fs::create_dir_all(tmp.path().join(".agent-trace")).unwrap();
742
743 let record = to_agent_trace_record(&graph, tmp.path());
744 append_agent_trace(&record, tmp.path());
745
746 let path = tmp.path().join(".agent-trace").join("traces.jsonl");
747 assert!(path.exists());
748 }
749
750 #[test]
751 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