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

Method snapshot

hail-fuzz/src/input.rs:339–343  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

337 }
338
339 fn snapshot(&mut self) -> Box<dyn std::any::Any> {
340 let cursors: Vec<_> = self.streams.iter().map(|(k, v)| (*k, v.cursor)).collect();
341 let tracer = self.tracer.as_ref().map(|x| x.snapshot());
342 Box::new(MultiStreamSnapshot { cursors, tracer })
343 }
344
345 fn restore(&mut self, snapshot: &Box<dyn std::any::Any>) {
346 let snapshot = snapshot.downcast_ref::<MultiStreamSnapshot>().unwrap();

Callers 3

captureMethod · 0.45
newMethod · 0.45
find_input_for_testsFunction · 0.45

Calls

no outgoing calls

Tested by 1

find_input_for_testsFunction · 0.36