(fuzzer: &mut Fuzzer)
| 404 | |
| 405 | impl Snapshot { |
| 406 | pub fn capture(fuzzer: &mut Fuzzer) -> Self { |
| 407 | Self { |
| 408 | vm: fuzzer.vm.snapshot(), |
| 409 | coverage: fuzzer.coverage.snapshot_local(&mut fuzzer.vm), |
| 410 | tracer: fuzzer.path_tracer.map(|x| x.snapshot(&mut fuzzer.vm)), |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | #[allow(unused)] |
| 415 | pub fn restore(&self, fuzzer: &mut Fuzzer) { |
nothing calls this directly
no test coverage detected