()
| 31 | |
| 32 | #[test] |
| 33 | fn coerces_integer_flag() { |
| 34 | let d = def("search"); |
| 35 | let parsed = parse_invocation( |
| 36 | &d, |
| 37 | &["foo".to_string(), "--limit".to_string(), "25".to_string()], |
| 38 | ) |
| 39 | .unwrap(); |
| 40 | assert_eq!(parsed.tool_args, json!({ "query": "foo", "limit": 25 })); |
| 41 | } |
| 42 | |
| 43 | #[test] |
| 44 | fn rejects_non_numeric_flag() { |
nothing calls this directly
no test coverage detected