()
| 80 | |
| 81 | #[test] |
| 82 | fn args_escape_hatch() { |
| 83 | let d = def("search"); |
| 84 | let parsed = parse_invocation( |
| 85 | &d, |
| 86 | &[ |
| 87 | "--args".to_string(), |
| 88 | r#"{"query":"foo","limit":3}"#.to_string(), |
| 89 | ], |
| 90 | ) |
| 91 | .unwrap(); |
| 92 | assert_eq!(parsed.tool_args["query"], json!("foo")); |
| 93 | assert_eq!(parsed.tool_args["limit"], json!(3)); |
| 94 | } |
| 95 | |
| 96 | #[test] |
| 97 | fn args_escape_hatch_reads_at_file() { |
nothing calls this directly
no test coverage detected