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
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-20 16:25 +0000
1import unittest
3from wasmtime import *
6class TestEngine(unittest.TestCase):
7 def test_smoke(self):
8 Engine()
9 Engine(Config())
11 Engine().is_pulley()
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)