roundtripHelper compresses then uncompresses uncompressedPacket and checks state variables
(t *testing.T, cSend *mysqlConn, cReceive *mysqlConn, uncompressedPacket []byte)
| 52 | |
| 53 | // roundtripHelper compresses then uncompresses uncompressedPacket and checks state variables |
| 54 | func roundtripHelper(t *testing.T, cSend *mysqlConn, cReceive *mysqlConn, uncompressedPacket []byte) []byte { |
| 55 | compressed := compressHelper(t, cSend, uncompressedPacket) |
| 56 | return uncompressHelper(t, cReceive, compressed) |
| 57 | } |
| 58 | |
| 59 | // TestRoundtrip tests two connections, where one is reading and the other is writing |
| 60 | func TestRoundtrip(t *testing.T) { |
no test coverage detected