(
mut reader: impl BufRead,
validator: &CliHelper,
)
| 218 | use super::*; |
| 219 | |
| 220 | fn readline_direct( |
| 221 | mut reader: impl BufRead, |
| 222 | validator: &CliHelper, |
| 223 | ) -> Result<ValidationResult> { |
| 224 | let mut input = String::new(); |
| 225 | |
| 226 | if reader.read_line(&mut input)? == 0 { |
| 227 | return Err(ReadlineError::Eof); |
| 228 | } |
| 229 | |
| 230 | validator.validate_input(&input) |
| 231 | } |
| 232 | |
| 233 | #[test] |
| 234 | fn unescape_readline_input() -> Result<()> { |
searching dependent graphs…