pub fn replay<I, F, R>(
harness: &mut F,
replay_cfg: &ReplayOptions,
) -> Result<(), Box<dyn Error>>Expand description
Replay inputs from files using the provided harness function.
§Arguments
harness- A mutable function that accepts aBytesInputreference and produces some result.replay_cfg- Configuration options for the replay process.
§Returns
Ok(()) if all files were replayed successfully, or an Error if any file operations fail.
§Description
This function iterates through a list of files specified in the replay configuration,
reads each file’s contents, converts them to BytesInput objects, and passes them
to the provided harness function. It respects the start and end indices in the configuration
and provides progress updates every 100 files processed.