(size int)
| 16 | ) |
| 17 | |
| 18 | func makeRandByteSlice(size int) []byte { |
| 19 | randBytes := make([]byte, size) |
| 20 | rand.Read(randBytes) |
| 21 | return randBytes |
| 22 | } |
| 23 | |
| 24 | // compressHelper compresses uncompressedPacket and checks state variables |
| 25 | func compressHelper(t *testing.T, mc *mysqlConn, uncompressedPacket []byte) []byte { |