test: added additional test coverage to graph components
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user