Skip to content

How to test with redismock function "ScanType" #22

Open
@googsvg

Description

@googsvg

Hello,

I'm using your redismock and it works great! :)

I am using your scan for type, ScanType, but I am missing the ExpectedScanType. Using ExpectedScan isn't working, since the error that pops out is:
expectation '[scan 0 match test_login:d3812faf80134ee6ec6b6cbd]', but call to cmd '[scan 0 match test_login:* type hash]'

Can you please provide me with what I should use for testing ScanType? Thanks!

Activity

james-coopstools

james-coopstools commented on Apr 7, 2022

@james-coopstools

I added PR for this feature: #31

Until the PR is approved or a different change is in place, my fork is off of 8.0.6, and the only change is adding this feature (and corresponding test). go get github.com/james-coopstools/redismock/v8@v8.0.6c

(P.S. This is my first time attempting to contribute to an open source project; please let me know if I am doing anything wrong)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @googsvg@james-coopstools

        Issue actions

          How to test with redismock function "ScanType" · Issue #22 · go-redis/redismock