MCPcopy
hub / github.com/redis/go-redis / createMockConnection

Function createMockConnection

push/push_test.go:861–864  ·  view source on GitHub ↗

createMockConnection creates a mock connection for testing

()

Source from the content-addressed store, hash-verified

859
860// createMockConnection creates a mock connection for testing
861func createMockConnection() *pool.Conn {
862 mockNetConn := &MockNetConn{}
863 return pool.NewConn(mockNetConn)
864}
865
866// createFakeRESP3Array creates a fake RESP3 array (not push notification)
867func createFakeRESP3Array(elements ...string) *bytes.Buffer {

Calls 1

NewConnFunction · 0.92

Tested by

no test coverage detected