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

Function roundtrip

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

Source from the content-addressed store, hash-verified

85
86#[test]
87fn roundtrip() -> Result<()> {
88 for debug in [true, false] {
89 let mut config = wasmtime_test_util::component::config();
90 config.debug_adapter_modules(debug);
91 let engine = Engine::new(&config)?;
92 for src in ENCODINGS {
93 for dst in ENCODINGS {
94 test_roundtrip(&engine, src, dst)?;
95 }
96 }
97 }
98 Ok(())
99}
100
101fn test_roundtrip(engine: &Engine, src: &str, dst: &str) -> Result<()> {
102 println!("src={src} dst={dst}");

Callers 3

charsFunction · 0.70
stringsFunction · 0.70
simple_type_assertionsFunction · 0.70

Calls 5

test_roundtripFunction · 0.85
OkFunction · 0.85
debug_adapter_modulesMethod · 0.80
configFunction · 0.50
newFunction · 0.50

Tested by

no test coverage detected