Lines Matching refs:file_reader
225 let file_reader = LocalFileReader::new(File::open(content_path)?)?; in new_reader_with_fsverity() localVariable
226 let file_size = file_reader.len(); in new_reader_with_fsverity()
230 file_reader, in new_reader_with_fsverity()
241 let (file_reader, file_size) = in fsverity_verify_full_read_4k()
246 assert!(file_reader.read_chunk(i, &mut buf).is_ok()); in fsverity_verify_full_read_4k()
253 let (file_reader, file_size) = in fsverity_verify_full_read_4k1()
258 assert!(file_reader.read_chunk(i, &mut buf).is_ok()); in fsverity_verify_full_read_4k1()
265 let (file_reader, file_size) = in fsverity_verify_full_read_4m()
270 assert!(file_reader.read_chunk(i, &mut buf).is_ok()); in fsverity_verify_full_read_4m()
277 let (file_reader, _) = new_reader_with_fsverity( in fsverity_verify_bad_merkle_tree()
288 assert!(file_reader.read_chunk(i, &mut buf).is_err()); in fsverity_verify_bad_merkle_tree()
290 assert!(file_reader.read_chunk(last_index, &mut buf).is_ok()); in fsverity_verify_bad_merkle_tree()