| 5 | using namespace wasmtime::component; |
| 6 | |
| 7 | TEST(Linker, allow_shadowing) { |
| 8 | wasmtime::Engine engine; |
| 9 | Linker linker(engine); |
| 10 | auto m = wasmtime::Module::compile(engine, "(module)").unwrap(); |
| 11 | |
| 12 | linker.root().add_module("x", m).unwrap(); |
| 13 | linker.root().add_module("x", m).err(); |
| 14 | linker.allow_shadowing(true); |
| 15 | linker.root().add_module("x", m).unwrap(); |
| 16 | } |
| 17 | |
| 18 | TEST(Linker, unknown_imports_trap) { |
| 19 | wasmtime::Engine engine; |
nothing calls this directly
no test coverage detected