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

Function testTupleRoundtrip

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

Source from the content-addressed store, hash-verified

156}
157
158func testTupleRoundtrip() {
159 m := test.NamesById{7: "seven"}
160 resultMap, resultNum := test.TupleRoundtrip(Tuple2[test.NamesById, uint64]{m, 42})
161 assertEqual(len(resultMap), 1)
162 assertEqual(resultMap[7], "seven")
163 assertEqual(resultNum, uint64(42))
164}
165
166func testSingleEntryRoundtrip() {
167 input := test.NamesById{99: "ninety-nine"}

Callers 1

RunFunction · 0.85

Calls 1

assertEqualFunction · 0.70

Tested by

no test coverage detected