pub fn line_count( path: impl Into<String>, expected: usize, message: impl Into<String>, ) -> LineCount
The file must have exactly expected lines, counted like Python’s str.splitlines().
expected
str.splitlines()