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

Method from_sequence

hail-fuzz/src/i2s/analysis.rs:172–178  ·  view source on GitHub ↗
(items: impl Iterator<Item = i64> + Clone)

Source from the content-addressed store, hash-verified

170
171 #[cfg(test)]
172 fn from_sequence(items: impl Iterator<Item = i64> + Clone) -> Self {
173 let mut estimator = Self::default();
174 for (prev, next) in items.clone().zip(items.skip(1)) {
175 estimator.update(prev, next);
176 }
177 estimator
178 }
179}
180
181#[derive(Debug)]

Callers

nothing calls this directly

Calls 8

CounterClass · 0.85
RangeClass · 0.85
cloneMethod · 0.80
finalizeMethod · 0.80
stepsMethod · 0.80
updateMethod · 0.45
lenMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected