()
| 234 | /// Ensure that an empty single value will return `None` when passed into |
| 235 | /// [`parse_optional_value`]. |
| 236 | #[test] |
| 237 | pub fn test_empty_optional_value() -> TestResult { |
| 238 | let keyword = Keyword::simple("test"); |
| 239 | let value = Value::Single("".to_string()); |
| 240 | |
| 241 | let value = parse_optional_value(&keyword, &value, rest)?; |
| 242 | |
| 243 | assert!(value.is_none(), "Empty string values should return `None`."); |
| 244 | |
| 245 | Ok(()) |
| 246 | } |
| 247 | } |
nothing calls this directly
no test coverage detected