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

Function assertEqual

tests/runtime/map/runner.go:173–177  ·  view source on GitHub ↗
(a T, b T)

Source from the content-addressed store, hash-verified

171}
172
173func assertEqual[T comparable](a T, b T) {
174 if a != b {
175 panic(fmt.Sprintf("%v not equal to %v", a, b))
176 }
177}
178
179func assertSliceEqual[T comparable](a []T, b []T) {
180 if len(a) != len(b) {

Callers 12

testNamedRoundtripFunction · 0.70
testEmptyRoundtripFunction · 0.70
testOptionRoundtripFunction · 0.70
testRecordRoundtripFunction · 0.70
testInlineRoundtripFunction · 0.70
testLargeRoundtripFunction · 0.70
testMultiParamRoundtripFunction · 0.70
testNestedRoundtripFunction · 0.70
testVariantRoundtripFunction · 0.70
testResultRoundtripFunction · 0.70
testTupleRoundtripFunction · 0.70
testSingleEntryRoundtripFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected