()
| 9 | var extSizes = [...]int{0, 1, 2, 4, 8, 16, int(tint8), int(tuint16), int(tuint32)} |
| 10 | |
| 11 | func randomExt() RawExtension { |
| 12 | e := RawExtension{} |
| 13 | e.Type = int8(rand.Int()) |
| 14 | e.Data = RandBytes(extSizes[rand.Intn(len(extSizes))]) |
| 15 | return e |
| 16 | } |
| 17 | |
| 18 | func TestReadWriteExtension(t *testing.T) { |
| 19 | var buf bytes.Buffer |
no test coverage detected
searching dependent graphs…