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

Function testNamedRoundtrip

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

Source from the content-addressed store, hash-verified

26}
27
28func testNamedRoundtrip() {
29 input := test.NamesById{
30 1: "uno",
31 2: "two",
32 }
33 result := test.NamedRoundtrip(input)
34 assertEqual(result["uno"], uint32(1))
35 assertEqual(result["two"], uint32(2))
36}
37
38func testBytesRoundtrip() {
39 input := test.BytesByName{

Callers 1

RunFunction · 0.85

Calls 1

assertEqualFunction · 0.70

Tested by

no test coverage detected