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

Function test_condense_tool_use

atomic-agent/src/transcript/tests.rs:100–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99#[test]
100fn 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]
110fn test_condense_filters_skill_injection() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected