Coverage for tests/test_types.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-20 16:25 +0000

1import unittest 

2 

3from wasmtime import FuncType, ValType 

4 

5 

6class TestTypes(unittest.TestCase): 

7 def test_valtypes(self): 

8 ValType.i32() 

9 ValType.i64() 

10 ValType.f32() 

11 ValType.f64() 

12 

13 def test_new(self): 

14 FuncType([], []) 

15 FuncType([ValType.i32()], [ValType.i64()])