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

Function makeRandByteSlice

compress_test.go:18–22  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

16)
17
18func 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
25func compressHelper(t *testing.T, mc *mysqlConn, uncompressedPacket []byte) []byte {

Callers 1

TestRoundtripFunction · 0.85

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected