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

Function Run

tests/runtime/resource-borrow/runner.go:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func Run() {
9 thing := test.MakeThing(42)
10 defer thing.Drop()
11
12 result := test.Foo(thing)
13 assertEqual(result, uint32(42+1+2))
14}
15
16func assertEqual[T comparable](a T, b T) {
17 if a != b {

Callers

nothing calls this directly

Calls 2

assertEqualFunction · 0.70
FooMethod · 0.45

Tested by

no test coverage detected