MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / TEST

Function TEST

crates/c-api/tests/config.cc:7–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace wasmtime;
6
7TEST(PoolAllocationConfig, Smoke) {
8 PoolAllocationConfig config;
9 config.max_unused_warm_slots(1);
10 config.decommit_batch_size(2);
11 config.async_stack_keep_resident(3);
12 config.linear_memory_keep_resident(4);
13 config.table_keep_resident(5);
14 config.total_component_instances(6);
15 config.max_component_instance_size(7);
16 config.max_core_instances_per_component(8);
17 config.max_memories_per_component(9);
18 config.max_tables_per_component(10);
19 config.total_memories(11);
20 config.total_tables(12);
21 config.total_stacks(13);
22 config.total_core_instances(14);
23 config.max_core_instance_size(15);
24 config.max_tables_per_module(16);
25 config.table_elements(17);
26 config.max_memories_per_module(18);
27 config.max_memory_size(19);
28 config.total_gc_heaps(20);
29
30 PoolAllocationConfig config2 = std::move(config);
31 PoolAllocationConfig config3(std::move(config));
32}
33
34TEST(Config, Smoke) {
35 Config config;

Callers

nothing calls this directly

Calls 15

MyMemoryCreatorClass · 0.85
cache_load_defaultMethod · 0.80
cache_loadMethod · 0.80
host_memory_creatorMethod · 0.80
compileFunction · 0.50
createFunction · 0.50
max_unused_warm_slotsMethod · 0.45
decommit_batch_sizeMethod · 0.45

Tested by

no test coverage detected