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

Function rejects_non_numeric_flag

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

Source from the content-addressed store, hash-verified

42
43#[test]
44fn rejects_non_numeric_flag() {
45 let d = def("search");
46 let err = parse_invocation(
47 &d,
48 &["foo".to_string(), "--limit".to_string(), "abc".to_string()],
49 )
50 .unwrap_err();
51 let msg = format!("{err}");
52 assert!(
53 msg.contains("number") || msg.contains("integer"),
54 "got: {msg}"
55 );
56}
57
58#[test]
59fn coerces_boolean_flag() {

Callers

nothing calls this directly

Calls 2

parse_invocationFunction · 0.85
defFunction · 0.70

Tested by

no test coverage detected