update: accept abnormal resistance as valid row in check-db

- this commits includes 2 other implementations
  - 1st one with custom type with `impl Read` for Lazy evaluation
    - this somehow ended up in infinite loop
  - 2nd one which collects lines without skipped lines first
    - this works
- the current implementations has another File and catches invalid row
  and check the line later
This commit is contained in:
Wataru Otsubo 2024-07-25 13:36:20 +09:00
parent c996e5bd28
commit 46487320b0
5 changed files with 188 additions and 14 deletions

View file

@ -31,8 +31,8 @@ mod integrated_test {
let f = File::open(test_out.clone())?;
let r = BufReader::new(f);
assert!(r.lines().any(|line| {
line.unwrap().contains(
"8866,,B-0-1,0,1,1,0,1,8,1,,7,2024-07-20T17:15:46Z,7.log,0.1.0,alice,,,,",
line.unwrap().eq(
"8866,,B-0-1,0,1,1,0,1,8,1,,7,2024-07-20T17:15:46Z,7.log,0.1.0,alice,,,,false,",
)
}));
}