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

Function ptr_out_of_bounds

tests/all/component_model/strings.rs:196–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194
195#[test]
196fn ptr_out_of_bounds() -> Result<()> {
197 let engine = wasmtime_test_util::component::engine();
198 for src in ENCODINGS {
199 for dst in ENCODINGS {
200 test_ptr_out_of_bounds(&engine, src, dst)?;
201 }
202 }
203 Ok(())
204}
205
206fn test_ptr_out_of_bounds(engine: &Engine, src: &str, dst: &str) -> Result<()> {
207 let test = |len: u32| -> Result<()> {

Callers

nothing calls this directly

Calls 3

test_ptr_out_of_boundsFunction · 0.85
OkFunction · 0.85
engineFunction · 0.50

Tested by

no test coverage detected