(testConext *TestContext)
| 197 | } |
| 198 | |
| 199 | func 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 | } |
no test coverage detected