Coverage report: 90%

Files Functions Classes

coverage.py v7.11.3, created at 2025-12-01 19:40 +0000

File class statements missing excluded coverage
ci/cbindgen.py Visitor 113 3 0 97%
ci/cbindgen.py (no class) 98 5 0 95%
ci/download-wasmtime.py (no class) 89 78 0 12%
examples/gcd.py (no class) 9 6 0 33%
examples/hello.py (no class) 11 8 0 27%
examples/linking.py (no class) 18 15 0 17%
examples/memory.py (no class) 56 53 0 5%
examples/multi.py (no class) 34 31 0 9%
tests/__init__.py (no class) 1 0 0 100%
tests/component/test_component.py TestComponent 39 0 0 100%
tests/component/test_component.py (no class) 9 0 0 100%
tests/component/test_func.py TestFunc 179 0 0 100%
tests/component/test_func.py TestFunc.roundtrip.Bad 0 0 0 100%
tests/component/test_func.py TestFunc.test_record.Record 0 0 0 100%
tests/component/test_func.py TestFunc.test_record.RecordBad 0 0 0 100%
tests/component/test_func.py (no class) 27 0 0 100%
tests/component/test_instance.py TestInstance 33 0 0 100%
tests/component/test_instance.py (no class) 7 0 0 100%
tests/component/test_linker.py TestLinker 99 0 0 100%
tests/component/test_linker.py (no class) 14 0 0 100%
tests/component/test_types.py TestTypes 147 0 0 100%
tests/component/test_types.py (no class) 31 0 0 100%
tests/component/test_value.py TestValue 74 0 0 100%
tests/component/test_value.py (no class) 9 0 0 100%
tests/test_config.py TestConfig 38 0 0 100%
tests/test_config.py (no class) 5 0 0 100%
tests/test_engine.py TestEngine 9 0 0 100%
tests/test_engine.py (no class) 5 0 0 100%
tests/test_func.py TestFunc 103 0 0 100%
tests/test_func.py (no class) 12 0 0 100%
tests/test_global.py TestGlobal 31 0 0 100%
tests/test_global.py (no class) 6 0 0 100%
tests/test_instance.py TestInstance 108 0 0 100%
tests/test_instance.py (no class) 15 0 0 100%
tests/test_linker.py TestLinker 88 0 0 100%
tests/test_linker.py (no class) 12 0 0 100%
tests/test_memory.py TestMemory 79 0 0 100%
tests/test_memory.py (no class) 8 0 0 100%
tests/test_module.py TestModule 86 0 0 100%
tests/test_module.py (no class) 10 0 0 100%
tests/test_refs.py SetHitOnDrop 3 0 0 100%
tests/test_refs.py TestExternRef 64 0 0 100%
tests/test_refs.py TestFuncRef 15 2 0 87%
tests/test_refs.py (no class) 25 0 0 100%
tests/test_shared_memory.py TestSharedMemory 36 0 0 100%
tests/test_shared_memory.py (no class) 10 0 0 100%
tests/test_store.py TestStore 64 0 0 100%
tests/test_store.py (no class) 9 0 0 100%
tests/test_table.py TestTable 46 0 0 100%
tests/test_table.py (no class) 7 0 0 100%
tests/test_trap.py TestTrap 51 0 0 100%
tests/test_trap.py (no class) 7 0 0 100%
tests/test_types.py TestTypes 6 0 0 100%
tests/test_types.py (no class) 5 0 0 100%
tests/test_value.py TestValue 52 0 0 100%
tests/test_value.py (no class) 7 0 0 100%
tests/test_wasi.py TestWasi 49 3 0 94%
tests/test_wasi.py (no class) 9 0 0 100%
tests/test_wat2wasm.py TestWat2Wasm 4 0 0 100%
tests/test_wat2wasm.py (no class) 5 0 0 100%
wasmtime/__init__.py (no class) 20 0 0 100%
wasmtime/_bindings.py wasm_byte_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_config_t 0 0 0 100%
wasmtime/_bindings.py wasm_engine_t 0 0 0 100%
wasmtime/_bindings.py wasm_store_t 0 0 0 100%
wasmtime/_bindings.py wasm_mutability_enum 0 0 0 100%
wasmtime/_bindings.py wasm_limits_t 0 0 0 100%
wasmtime/_bindings.py wasm_valtype_t 0 0 0 100%
wasmtime/_bindings.py wasm_valtype_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_valkind_enum 0 0 0 100%
wasmtime/_bindings.py wasm_functype_t 0 0 0 100%
wasmtime/_bindings.py wasm_functype_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_globaltype_t 0 0 0 100%
wasmtime/_bindings.py wasm_globaltype_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_tabletype_t 0 0 0 100%
wasmtime/_bindings.py wasm_tabletype_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_memorytype_t 0 0 0 100%
wasmtime/_bindings.py wasm_memorytype_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_externtype_t 0 0 0 100%
wasmtime/_bindings.py wasm_externtype_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_externkind_enum 0 0 0 100%
wasmtime/_bindings.py wasm_importtype_t 0 0 0 100%
wasmtime/_bindings.py wasm_importtype_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_exporttype_t 0 0 0 100%
wasmtime/_bindings.py wasm_exporttype_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_val_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_frame_t 0 0 0 100%
wasmtime/_bindings.py wasm_frame_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_trap_t 0 0 0 100%
wasmtime/_bindings.py wasm_foreign_t 0 0 0 100%
wasmtime/_bindings.py wasm_module_t 0 0 0 100%
wasmtime/_bindings.py wasm_shared_module_t 0 0 0 100%
wasmtime/_bindings.py wasm_func_t 0 0 0 100%
wasmtime/_bindings.py wasm_global_t 0 0 0 100%
wasmtime/_bindings.py wasm_table_t 0 0 0 100%
wasmtime/_bindings.py wasm_memory_t 0 0 0 100%
wasmtime/_bindings.py wasm_extern_t 0 0 0 100%
wasmtime/_bindings.py wasm_extern_vec_t 0 0 0 100%
wasmtime/_bindings.py wasm_instance_t 0 0 0 100%
wasmtime/_bindings.py wasi_config_t 0 0 0 100%
wasmtime/_bindings.py wasi_dir_perms_flags 0 0 0 100%
wasmtime/_bindings.py wasi_file_perms_flags 0 0 0 100%
wasmtime/_bindings.py wasmtime_error 0 0 0 100%
wasmtime/_bindings.py wasmtime_strategy_enum 0 0 0 100%
wasmtime/_bindings.py wasmtime_opt_level_enum 0 0 0 100%
wasmtime/_bindings.py wasmtime_profiling_strategy_enum 0 0 0 100%
wasmtime/_bindings.py wasmtime_linear_memory 0 0 0 100%
wasmtime/_bindings.py wasmtime_memory_creator 0 0 0 100%
wasmtime/_bindings.py wasmtime_pooling_allocation_config_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_module 0 0 0 100%
wasmtime/_bindings.py wasmtime_sharedmemory 0 0 0 100%
wasmtime/_bindings.py wasmtime_store 0 0 0 100%
wasmtime/_bindings.py wasmtime_context 0 0 0 100%
wasmtime/_bindings.py wasmtime_func 0 0 0 100%
wasmtime/_bindings.py wasmtime_table_anon_0 0 0 0 100%
wasmtime/_bindings.py wasmtime_table 0 0 0 100%
wasmtime/_bindings.py wasmtime_memory_anon_0 0 0 0 100%
wasmtime/_bindings.py wasmtime_memory 0 0 0 100%
wasmtime/_bindings.py wasmtime_global 0 0 0 100%
wasmtime/_bindings.py wasmtime_extern_union 0 0 0 100%
wasmtime/_bindings.py wasmtime_extern 0 0 0 100%
wasmtime/_bindings.py wasmtime_anyref 0 0 0 100%
wasmtime/_bindings.py wasmtime_externref 0 0 0 100%
wasmtime/_bindings.py wasmtime_valunion 0 0 0 100%
wasmtime/_bindings.py wasmtime_val_raw 0 0 0 100%
wasmtime/_bindings.py wasmtime_val 0 0 0 100%
wasmtime/_bindings.py wasmtime_caller 0 0 0 100%
wasmtime/_bindings.py wasmtime_instance 0 0 0 100%
wasmtime/_bindings.py wasmtime_instance_pre 0 0 0 100%
wasmtime/_bindings.py wasmtime_linker 0 0 0 100%
wasmtime/_bindings.py wasmtime_guestprofiler 0 0 0 100%
wasmtime/_bindings.py wasmtime_guestprofiler_modules 0 0 0 100%
wasmtime/_bindings.py wasmtime_trap_code_enum 0 0 0 100%
wasmtime/_bindings.py wasmtime_async_continuation_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_call_future 0 0 0 100%
wasmtime/_bindings.py wasmtime_stack_memory 0 0 0 100%
wasmtime/_bindings.py wasmtime_stack_creator 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_resource_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valtype_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_list_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_record_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_tuple_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_variant_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_enum_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_option_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_result_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_flags_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_future_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_stream_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valtype_union 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_func_type_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_item_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_instance_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_module_type 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_type_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_item_union 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_export_index_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_resource_any 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_resource_host 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_val 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valrecord_entry 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_vallist 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valrecord 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valtuple 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valflags 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valvariant 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valresult 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_valunion 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_func_anon_0 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_func 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_instance 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_linker_t 0 0 0 100%
wasmtime/_bindings.py wasmtime_component_linker_instance_t 0 0 0 100%
wasmtime/_bindings.py (no class) 3525 384 0 89%
wasmtime/_config.py Config 77 19 0 75%
wasmtime/_config.py (no class) 53 0 0 100%
wasmtime/_engine.py Engine 9 0 0 100%
wasmtime/_engine.py (no class) 9 0 0 100%
wasmtime/_error.py WasmtimeError 24 2 0 92%
wasmtime/_error.py ExitTrap 0 0 0 100%
wasmtime/_error.py (no class) 13 0 0 100%
wasmtime/_exportable.py (no class) 2 0 6 100%
wasmtime/_extern.py Extern 2 2 0 0%
wasmtime/_extern.py (no class) 33 4 0 88%
wasmtime/_ffi.py wasm_ref_t 0 0 0 100%
wasmtime/_ffi.py wasm_val_union 0 0 0 100%
wasmtime/_ffi.py wasm_val_t 0 0 0 100%
wasmtime/_ffi.py (no class) 136 12 0 91%
wasmtime/_func.py Func 43 1 0 98%
wasmtime/_func.py Caller 20 2 0 90%
wasmtime/_func.py (no class) 78 4 0 95%
wasmtime/_globals.py Global 27 2 0 93%
wasmtime/_globals.py (no class) 13 0 0 100%
wasmtime/_instance.py Instance 17 0 0 100%
wasmtime/_instance.py InstanceExports 18 0 0 100%
wasmtime/_instance.py (no class) 21 0 0 100%
wasmtime/_linker.py Linker 62 7 0 89%
wasmtime/_linker.py (no class) 24 0 0 100%
wasmtime/_managed.py Managed 24 4 0 83%
wasmtime/_managed.py (no class) 13 0 0 100%
wasmtime/_memory.py Memory 52 2 0 96%
wasmtime/_memory.py (no class) 18 0 0 100%
wasmtime/_module.py Module 56 8 0 86%
wasmtime/_module.py ImportTypeList 2 0 0 100%
wasmtime/_module.py ExportTypeList 2 0 0 100%
wasmtime/_module.py (no class) 30 0 0 100%
wasmtime/_sharedmemory.py SharedMemory 25 8 0 68%
wasmtime/_sharedmemory.py (no class) 16 0 0 100%
wasmtime/_slab.py Slab 12 0 0 100%
wasmtime/_slab.py (no class) 7 0 0 100%
wasmtime/_store.py Store 35 7 0 80%
wasmtime/_store.py StoreContext 5 1 0 80%
wasmtime/_store.py (no class) 22 0 4 100%
wasmtime/_table.py Table 35 0 0 100%
wasmtime/_table.py (no class) 15 0 0 100%
wasmtime/_trap.py TrapCode 0 0 0 100%
wasmtime/_trap.py Trap 26 2 0 92%
wasmtime/_trap.py Frame 19 4 0 79%
wasmtime/_trap.py FrameList 3 0 0 100%
wasmtime/_trap.py (no class) 47 0 0 100%
wasmtime/_types.py ValType 46 9 0 80%
wasmtime/_types.py FuncType 32 5 0 84%
wasmtime/_types.py GlobalType 22 3 0 86%
wasmtime/_types.py Limits 14 2 0 86%
wasmtime/_types.py TableType 21 4 0 81%
wasmtime/_types.py MemoryType 30 5 0 83%
wasmtime/_types.py ImportType 15 2 0 87%
wasmtime/_types.py ExportType 11 1 0 91%
wasmtime/_types.py (no class) 115 3 0 97%
wasmtime/_value.py Val 133 16 0 88%
wasmtime/_value.py (no class) 47 0 2 100%
wasmtime/_wasi.py DirPerms 0 0 0 100%
wasmtime/_wasi.py FilePerms 0 0 0 100%
wasmtime/_wasi.py WasiConfig 34 3 0 91%
wasmtime/_wasi.py (no class) 72 5 0 93%
wasmtime/_wat2wasm.py (no class) 23 0 0 100%
wasmtime/component/__init__.py (no class) 10 0 0 100%
wasmtime/component/_component.py ExportIndex 7 2 0 71%
wasmtime/component/_component.py Component 46 8 0 83%
wasmtime/component/_component.py (no class) 27 0 0 100%
wasmtime/component/_enter.py (no class) 31 1 0 97%
wasmtime/component/_func.py Func 36 0 0 100%
wasmtime/component/_func.py (no class) 13 0 0 100%
wasmtime/component/_instance.py Instance 20 0 0 100%
wasmtime/component/_instance.py (no class) 12 0 0 100%
wasmtime/component/_linker.py Linker 26 1 0 96%
wasmtime/component/_linker.py LinkerInstance 46 2 0 96%
wasmtime/component/_linker.py (no class) 71 0 0 100%
wasmtime/component/_resource_type.py ResourceType 12 1 0 92%
wasmtime/component/_resource_type.py (no class) 12 0 0 100%
wasmtime/component/_resources.py ResourceAny 18 1 0 94%
wasmtime/component/_resources.py ResourceHost 19 2 0 89%
wasmtime/component/_resources.py (no class) 32 0 0 100%
wasmtime/component/_types.py ComponentType 29 1 0 97%
wasmtime/component/_types.py ComponentInstanceType 18 1 0 94%
wasmtime/component/_types.py ModuleType 19 1 0 95%
wasmtime/component/_types.py FuncType 26 1 0 96%
wasmtime/component/_types.py ValType 3 3 0 0%
wasmtime/component/_types.py Bool 7 1 0 86%
wasmtime/component/_types.py S8 7 1 0 86%
wasmtime/component/_types.py S16 7 1 0 86%
wasmtime/component/_types.py S32 7 1 0 86%
wasmtime/component/_types.py S64 7 1 0 86%
wasmtime/component/_types.py U8 7 1 0 86%
wasmtime/component/_types.py U16 7 1 0 86%
wasmtime/component/_types.py U32 7 0 0 100%
wasmtime/component/_types.py U64 7 0 0 100%
wasmtime/component/_types.py F32 7 0 0 100%
wasmtime/component/_types.py F64 7 1 0 86%
wasmtime/component/_types.py Char 7 1 0 86%
wasmtime/component/_types.py String 9 1 0 89%
wasmtime/component/_types.py ErrorContext 3 3 0 0%
wasmtime/component/_types.py ListType 52 5 0 90%
wasmtime/component/_types.py RecordType 54 3 0 94%
wasmtime/component/_types.py Record 4 1 0 75%
wasmtime/component/_types.py TupleType 50 3 0 94%
wasmtime/component/_types.py Variant 0 0 0 100%
wasmtime/component/_types.py VariantLikeType 56 8 0 86%
wasmtime/component/_types.py VariantType 33 2 0 94%
wasmtime/component/_types.py EnumType 31 4 0 87%
wasmtime/component/_types.py OptionType 21 2 0 90%
wasmtime/component/_types.py ResultType 29 2 0 93%
wasmtime/component/_types.py FlagsType 38 4 0 89%
wasmtime/component/_types.py FutureType 14 14 0 0%
wasmtime/component/_types.py StreamType 14 14 0 0%
wasmtime/component/_types.py OwnType 11 2 0 82%
wasmtime/component/_types.py BorrowType 11 2 0 82%
wasmtime/component/_types.py (no class) 313 10 0 97%
Total   8851 851 12 90%

No items found using the specified filter.