Coverage for tests/codegen/generated/two_exports/__init__.py: 100%
23 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-20 16:25 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-20 16:25 +0000
1from .exports import i1, i2
2from .imports import RootImports
3import wasmtime
5class Root:
7 def __init__(self, store: wasmtime.Store, import_object: RootImports) -> None:
8 def lowering0_callee(caller: wasmtime.Caller) -> None:
9 import_object.i.f1()
10 lowering0_ty = wasmtime.FuncType([], [])
11 trampoline0 = wasmtime.Func(store, lowering0_ty, lowering0_callee, access_caller = True)
12 def lowering1_callee(caller: wasmtime.Caller) -> None:
13 import_object.i.f2()
14 lowering1_ty = wasmtime.FuncType([], [])
15 trampoline1 = wasmtime.Func(store, lowering1_ty, lowering1_callee, access_caller = True)
16 lift_callee0 = trampoline0
17 assert(isinstance(lift_callee0, wasmtime.Func))
18 self.lift_callee0 = lift_callee0
19 lift_callee1 = trampoline1
20 assert(isinstance(lift_callee1, wasmtime.Func))
21 self.lift_callee1 = lift_callee1
22 def i1(self) -> i1.I1:
23 return i1.I1(self)
24 def i2(self) -> i2.I2:
25 return i2.I2(self)