(filename: impl AsRef<Path>)
| 5363 | }; |
| 5364 | |
| 5365 | fn lines_from_file(filename: impl AsRef<Path>) -> Vec<String> { |
| 5366 | let file = File::open(filename).expect("no such file"); |
| 5367 | let buf = BufReader::new(file); |
| 5368 | buf.lines() |
| 5369 | .map(|l| l.expect("Could not parse line")) |
| 5370 | .collect() |
| 5371 | } |
| 5372 | |
| 5373 | #[test] |
| 5374 | fn test_context_serialize() { |
no outgoing calls