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
Given that the type of pipe is RedisClient.this.PipelineClient and PipelineClient is an Inner Class, it is not possible to write something like this in a test (the code doesn't compile because it is not possible to import PipelineClient):
I see that PipelineClient is implemented as an Inner Class, but used as an Static Class, as it receives a reference to its parent, and all the accesses to it are done through the reference.
I am wondering if it could be possible to make PipelineClient an static class so pipelining can be easily mocked. I could prepare the PR if you wish.
The text was updated successfully, but these errors were encountered:
I also encountered this... PipelineClient is documented but not accessible. Not sure I understand the why you wouldn't at least expose this as a trait? Unless we should just be using RedisCommand?
I have a function like:
Given that the type of
pipe
isRedisClient.this.PipelineClient
andPipelineClient
is an Inner Class, it is not possible to write something like this in a test (the code doesn't compile because it is not possible to import PipelineClient):I see that
PipelineClient
is implemented as an Inner Class, but used as an Static Class, as it receives a reference to its parent, and all the accesses to it are done through the reference.I am wondering if it could be possible to make
PipelineClient
anstatic class
so pipelining can be easily mocked. I could prepare the PR if you wish.The text was updated successfully, but these errors were encountered: