MCPcopy
hub / github.com/go-sql-driver/mysql / roundtripHelper

Function roundtripHelper

compress_test.go:54–57  ·  view source on GitHub ↗

roundtripHelper compresses then uncompresses uncompressedPacket and checks state variables

(t *testing.T, cSend *mysqlConn, cReceive *mysqlConn, uncompressedPacket []byte)

Source from the content-addressed store, hash-verified

52
53// roundtripHelper compresses then uncompresses uncompressedPacket and checks state variables
54func 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
60func TestRoundtrip(t *testing.T) {

Callers 1

TestRoundtripFunction · 0.85

Calls 2

compressHelperFunction · 0.85
uncompressHelperFunction · 0.85

Tested by

no test coverage detected