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