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

Function testSingleEntryRoundtrip

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

Source from the content-addressed store, hash-verified

164}
165
166func testSingleEntryRoundtrip() {
167 input := test.NamesById{99: "ninety-nine"}
168 result := test.SingleEntryRoundtrip(input)
169 assertEqual(len(result), 1)
170 assertEqual(result[99], "ninety-nine")
171}
172
173func assertEqual[T comparable](a T, b T) {
174 if a != b {

Callers 1

RunFunction · 0.85

Calls 1

assertEqualFunction · 0.70

Tested by

no test coverage detected