Coverage for tests/test_engine.py: 100%

14 statements  

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

1import unittest 

2 

3from wasmtime import * 

4 

5 

6class TestEngine(unittest.TestCase): 

7 def test_smoke(self): 

8 Engine() 

9 Engine(Config()) 

10 

11 Engine().is_pulley() 

12 

13 def test_errors(self): 

14 with self.assertRaises(TypeError): 

15 Engine(3) # type: ignore 

16 config = Config() 

17 Engine(config) 

18 with self.assertRaises(ValueError): 

19 Engine(config)