fn read_through( path: &Path, open: &mut dyn FnMut(&Path) -> Result<File>, ) -> Result<(Vec<u8>, Metadata)>
read_whole_with, each file opened by open (a test replaces the file between its opening and its reading).
read_whole_with
open