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

Function coerces_boolean_flag

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

Source from the content-addressed store, hash-verified

57
58#[test]
59fn coerces_boolean_flag() {
60 let d = def("context");
61 let parsed = parse_invocation(
62 &d,
63 &[
64 "describe X".to_string(),
65 "--include-code".to_string(),
66 "true".to_string(),
67 ],
68 )
69 .unwrap();
70 assert_eq!(parsed.tool_args["include_code"], json!(true));
71}
72
73#[test]
74fn missing_required_errors() {

Callers

nothing calls this directly

Calls 2

parse_invocationFunction · 0.85
defFunction · 0.70

Tested by

no test coverage detected