()
| 42 | |
| 43 | #[test] |
| 44 | fn 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] |
| 59 | fn coerces_boolean_flag() { |
nothing calls this directly
no test coverage detected