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

Function testLargeRoundtrip

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

Source from the content-addressed store, hash-verified

89}
90
91func testLargeRoundtrip() {
92 input := make(test.NamesById)
93 for i := uint32(0); i < 100; i++ {
94 input[i] = fmt.Sprintf("value-%d", i)
95 }
96 result := test.LargeRoundtrip(input)
97 assertEqual(len(result), 100)
98 for i := uint32(0); i < 100; i++ {
99 assertEqual(result[i], fmt.Sprintf("value-%d", i))
100 }
101}
102
103func testMultiParamRoundtrip() {
104 names := test.NamesById{

Callers 1

RunFunction · 0.85

Calls 2

LargeRoundtripMethod · 0.80
assertEqualFunction · 0.70

Tested by

no test coverage detected