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

Class CorpusMetadata

hail-fuzz/src/queue.rs:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41#[derive(Default, serde::Serialize)]
42pub struct CorpusMetadata {
43 /// The total size (in bytes) of all the inputs in the input queue.
44 pub total_input_bytes: usize,
45 /// The total number of instructions across any input.
46 pub total_instructions: u64,
47 /// Metadata collected for each input stream.
48 #[serde(serialize_with = "serialize_as_vec")]
49 pub streams: HashMap<StreamKey, StreamMetadata>,
50}
51
52pub fn serialize_as_vec<S, K, V>(map: &HashMap<K, V>, serializer: S) -> Result<S::Ok, S::Error>
53where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected