4 use std::iter::Iterator;
6 #[derive(Debug, PartialEq, Eq)]
13 fn read_rows(input: impl std::io::Read) -> impl Iterator<Item = RowInput> {
14 std::io::BufReader::new(input).lines().map(|line| RowInput {
20 pub fn tablify(_input: &impl std::io::Read) -> String {
21 String::from("Hello, world!")
31 read_rows(&b"foo"[..]).collect::<Vec<_>>(),
33 label: String::from("foo"),
38 read_rows(&b"bar"[..]).collect::<Vec<_>>(),
40 label: String::from("bar"),
45 read_rows(&b"foo\nbar\n"[..]).collect::<Vec<_>>(),
48 label: String::from("foo"),
52 label: String::from("bar"),