use arbitrary::Unstructured; use rand::{RngCore, SeedableRng, rngs::SmallRng}; use wasm_smith::{Config, Module}; use wasmparser::{Parser, Validator, WasmFeatures, types::EntityType};
let features = config.features(); let module = Module::new(config, &mut u).unwrap(); let wasm_bytes = module.to_bytes();
// The generated and expected imports/exports should share the same CoreTypeId, since // we copy all types, imports, and exports from the module-shape module into the target // module at the start of generation. let (generated_imports, generated_exports) = get_imports_exports(features, &wasm_bytes);
assert_eq!(expected_imports, generated_imports);
assert_eq!(expected_exports, generated_exports);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.