MCPcopy Create free account
hub / github.com/DNAProject/DNA / buildTestConext

Function buildTestConext

wasmtest/common/common.go:199–211  ·  view source on GitHub ↗
(testConext *TestContext)

Source from the content-addressed store, hash-verified

197}
198
199func buildTestConext(testConext *TestContext) []byte {
200 bf := common.NewZeroCopySink(nil)
201 addrMap := testConext.AddrMap
202
203 bf.WriteAddress(testConext.Admin)
204 bf.WriteVarUint(uint64(len(addrMap)))
205 for file, addr := range addrMap {
206 bf.WriteString(file)
207 bf.WriteAddress(addr)
208 }
209
210 return bf.Bytes()
211}

Callers 1

GenWasmTransactionFunction · 0.85

Calls 5

WriteAddressMethod · 0.95
WriteVarUintMethod · 0.95
WriteStringMethod · 0.95
BytesMethod · 0.95
NewZeroCopySinkFunction · 0.92

Tested by

no test coverage detected