+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn test_read_rows() {
+ assert_eq!(
+ read_rows(&b"foo"[..]).collect::<Vec<_>>(),
+ vec![RowInput {
+ label: String::from("foo"),
+ entries: vec![]
+ }]
+ );
+ assert_eq!(
+ read_rows(&b"bar"[..]).collect::<Vec<_>>(),
+ vec![RowInput {
+ label: String::from("bar"),
+ entries: vec![]
+ }]
+ );
+ }
+}