Call graph: wasmFn() // Executor::This = executor1 hostFnCheck() // EXPECT_EQ(Executor::This, executor1) hostFnOverwrite() // create nested VM wasmFnOverwrite() // Executor::This = executor2 hostFnCheck() // EXPECT_EQ(Executor::This, executor1) */
| 195 | hostFnCheck() // EXPECT_EQ(Executor::This, executor1) |
| 196 | */ |
| 197 | TEST(APIAOTNestedVMTest, NestedVM) { |
| 198 | compileWasm(); |
| 199 | callWasm("wasmFn"); |
| 200 | // wasmedge doesn't build GMock by default |
| 201 | EXPECT_EQ(CalledHostFnCheck, 2); |
| 202 | EXPECT_EQ(CalledHostFnOverwrite, 1); |
| 203 | } |
| 204 | } // namespace |
nothing calls this directly
no test coverage detected