MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / args_escape_hatch

Function args_escape_hatch

src/tool_command/tests.rs:82–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81#[test]
82fn 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]
97fn args_escape_hatch_reads_at_file() {

Callers

nothing calls this directly

Calls 2

parse_invocationFunction · 0.85
defFunction · 0.70

Tested by

no test coverage detected