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