Coverage for tests/bindgen/export_resources/test_export_resources.py: 100%

7 statements  

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

1from pathlib import Path 

2 

3 

4def test_bare_funcs(bindgen_testcase): 

5 store, root = bindgen_testcase( 

6 guest_code_dir=Path(__file__).parent, 

7 world_name='testworld', 

8 ) 

9 interface = root.my_interface_name() 

10 instance = interface.DemoResourceClass(store, 'myname') 

11 result = instance.greet(store, 'Hello there') 

12 assert result == 'Hello there, myname!'