MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / generate_list

Method generate_list

crates/test-util/src/component_fuzz.rs:249–255  ·  view source on GitHub ↗
(
        u: &mut Unstructured<'_>,
        depth: u32,
        fuel: &mut u32,
    )

Source from the content-addressed store, hash-verified

247 }
248
249 fn generate_list<const L: u32, const H: u32>(
250 u: &mut Unstructured<'_>,
251 depth: u32,
252 fuel: &mut u32,
253 ) -> arbitrary::Result<VecInRange<Type, L, H>> {
254 VecInRange::new(u, fuel, |u, fuel| Type::generate(u, depth, fuel))
255 }
256
257 /// Generates text format wasm into `s` to store a value of this type, in
258 /// its flat representation stored in the `locals` provided, to the local

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
generateFunction · 0.50

Tested by

no test coverage detected