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

Method arbitrary

crates/fuzzing/src/generators/config.rs:566–577  ·  view source on GitHub ↗
(u: &mut Unstructured<'a>)

Source from the content-addressed store, hash-verified

564
565impl<'a> Arbitrary<'a> for Config {
566 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> {
567 let mut config = Self {
568 wasmtime: u.arbitrary()?,
569 module_config: u.arbitrary()?,
570 };
571
572 config
573 .wasmtime
574 .update_module_config(&mut config.module_config, u)?;
575
576 Ok(config)
577 }
578}
579
580/// Configuration related to `wasmtime::Config` and the various settings which

Callers 1

enable_asyncMethod · 0.45

Calls 2

OkFunction · 0.85
update_module_configMethod · 0.80

Tested by

no test coverage detected