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

Function coerces_integer_flag

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

Source from the content-addressed store, hash-verified

31
32#[test]
33fn 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]
44fn rejects_non_numeric_flag() {

Callers

nothing calls this directly

Calls 2

parse_invocationFunction · 0.85
defFunction · 0.70

Tested by

no test coverage detected