MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / open_reader

Method open_reader

hail-fuzz/src/debugging/replay.rs:314–320  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

312
313impl Compression {
314 fn open_reader(&self, path: &Path) -> std::io::Result<Box<dyn std::io::Read>> {
315 let file = std::fs::File::open(path)?;
316 match self {
317 Self::None => Ok(Box::new(std::io::BufReader::new(file))),
318 Self::Gz => Ok(Box::new(flate2::read::GzDecoder::new(file))),
319 }
320 }
321}
322
323enum PathKind {

Callers 3

list_filesMethod · 0.80
readMethod · 0.80
read_withinFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected