You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a basic in-memory fake for the AsyncCommands trait. It's been a nice way to pass this to my functions and make sure they're collecting the correct types and such.
Here is the implementation. Is this something that you would be interested in having as part of the redis-rs library itself? I understand not wanting to take on maintenance for it, but I think it could be helpful for other people writing tests so I thought I'd ask.
The text was updated successfully, but these errors were encountered:
My implementation is for ConnectionLike, that's definitely the easiest way to get Commands. On your PR, this is how you can test a pipeline with a mock ConnectionLike implementation.
I wrote a basic in-memory fake for the
AsyncCommands
trait. It's been a nice way to pass this to my functions and make sure they're collecting the correct types and such.Here is the implementation. Is this something that you would be interested in having as part of the redis-rs library itself? I understand not wanting to take on maintenance for it, but I think it could be helpful for other people writing tests so I thought I'd ask.
The text was updated successfully, but these errors were encountered: