()
| 115 | |
| 116 | #[test] |
| 117 | fn args_escape_hatch_reads_stdin_dash() { |
| 118 | let d = def("search"); |
| 119 | let parsed = parse_invocation_with_stdin(&d, &["--args".to_string(), "-".to_string()], || { |
| 120 | Ok(r#"{"query":"stdin","limit":9}"#.to_string()) |
| 121 | }) |
| 122 | .unwrap(); |
| 123 | assert_eq!(parsed.tool_args, json!({ "query": "stdin", "limit": 9 })); |
| 124 | } |
| 125 | |
| 126 | #[test] |
| 127 | fn args_escape_hatch_reads_stdin_at_dash() { |
nothing calls this directly
no test coverage detected