test: added additional test coverage to graph components

This commit is contained in:
2026-05-18 10:08:36 -06:00
parent b7a20a000a
commit 4f244618ca
5 changed files with 143 additions and 2 deletions
+17
View File
@@ -1429,6 +1429,23 @@ mod tests {
assert!(tc.thought_signature.is_none());
}
#[test]
fn direct_invoker_maps_each_language() {
assert_eq!(
Language::Bash.direct_invoker(),
Some(("bash", &[] as &[&str]))
);
assert_eq!(
Language::Python.direct_invoker(),
Some(("python3", &[] as &[&str]))
);
assert_eq!(
Language::TypeScript.direct_invoker(),
Some(("npx", &["tsx"] as &[&str]))
);
assert_eq!(Language::Unsupported.direct_invoker(), None);
}
#[test]
fn toolcall_with_thought_signature() {
let tc = ToolCall::new("t".into(), json!({}), None)