()
| 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() { |
nothing calls this directly
no test coverage detected