MCPcopy Create free account
hub / github.com/bytecodealliance/wasm-component-ld / assert_component

Function assert_component

tests/all.rs:81–84  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

79}
80
81fn assert_component(bytes: &[u8]) {
82 assert!(wasmparser::Parser::is_component(&bytes));
83 wasmparser::Validator::new().validate_all(&bytes).unwrap();
84}
85
86fn assert_module(bytes: &[u8]) {
87 assert!(wasmparser::Parser::is_core_wasm(&bytes));

Callers 8

emptyFunction · 0.85
empty_mainFunction · 0.85
hello_worldFunction · 0.85
cdylib_arbitrary_exportFunction · 0.85
can_access_badfdFunction · 0.85
linker_flagsFunction · 0.85
component_type_wit_fileFunction · 0.85

Calls

no outgoing calls

Tested by 8

emptyFunction · 0.68
empty_mainFunction · 0.68
hello_worldFunction · 0.68
cdylib_arbitrary_exportFunction · 0.68
can_access_badfdFunction · 0.68
linker_flagsFunction · 0.68
component_type_wit_fileFunction · 0.68