()
| 98 | |
| 99 | #[test] |
| 100 | fn test_condense_tool_use() { |
| 101 | let jsonl = br#"{"type":"assistant","uuid":"3","message":{"content":[{"type":"tool_use","name":"Edit","input":{"file_path":"src/main.rs"}}]}}"#; |
| 102 | let entries = condense_claude_transcript(jsonl); |
| 103 | assert_eq!(entries.len(), 1); |
| 104 | assert!(entries[0].is_tool()); |
| 105 | assert_eq!(entries[0].tool_name.as_deref(), Some("Edit")); |
| 106 | assert_eq!(entries[0].tool_detail.as_deref(), Some("src/main.rs")); |
| 107 | } |
| 108 | |
| 109 | #[test] |
| 110 | fn test_condense_filters_skill_injection() { |
nothing calls this directly
no test coverage detected