MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / testInlineRoundtrip

Function testInlineRoundtrip

tests/runtime/map/runner.go:80–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func testInlineRoundtrip() {
81 input := map[uint32]string{
82 1: "one",
83 2: "two",
84 }
85 result := test.InlineRoundtrip(input)
86 assertEqual(len(result), 2)
87 assertEqual(result["one"], uint32(1))
88 assertEqual(result["two"], uint32(2))
89}
90
91func testLargeRoundtrip() {
92 input := make(test.NamesById)

Callers 1

RunFunction · 0.85

Calls 1

assertEqualFunction · 0.70

Tested by

no test coverage detected