• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sds / mock_redis / 26936466164
98%

Build:
DEFAULT BRANCH: main
Ran 04 Jun 2026 07:06AM UTC
Jobs 8
Files 27
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Jun 2026 07:05AM UTC coverage: 98.186% (+0.03%) from 98.16%
26936466164

push

github

web-flow
[Feature] Add gt option for zadd method at sorted set (#344)

Hi there, I am using `mock-redis` for our app's test environment. We are
looking to leverage `zadd` with the `gt` option from Redis for a caching
use case. I found out that `mock-redis` does not implement the `gt`
option for `zadd` the moment and took sometime to implement it in my
fork.

I implemented the `gt` option to `zadd`, having referred to the current
official [documentation](https://redis.io/docs/latest/commands/zadd/)
and used a couple of AI conversations to get an understanding of the
various edge cases before adding and committing the code in.

I've also validated that invocation of `zadd` with `gt` option does work
accordingly in the new specs added in the feature branch that I'm
developing right now.

# Changes

1. Add support for `gt` for single member and multi member `zadd` usages
2. Raise command error when both `gt` and `nx` options are included in
the same `zadd` invocation.
3. Support `gt` usages together with `xx` option, moving the branches
handling `nx` and `xx` downwards, respecting the current code structure.
4. Add support for `incr` option while using the `gt` option in both
single and multi member `zadd` invocation.

# Test

1. Multiple `it` blocks covering the changes and edge cases when any of
`gt`, `xx` and `nx` are included.

---

Hope you can take sometime to review and let me know what changes might
be desired for this to get merged. 🙏

28 of 28 new or added lines in 1 file covered. (100.0%)

1949 of 1985 relevant lines covered (98.19%)

1655.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby3.0-6.2 - 26936466164.1 04 Jun 2026 07:06AM UTC 27
96.27
GitHub Action Run
2 ruby3.2-6.2 - 26936466164.2 04 Jun 2026 07:06AM UTC 27
96.27
GitHub Action Run
3 ruby3.0-7.0 - 26936466164.3 04 Jun 2026 07:06AM UTC 27
39.19
GitHub Action Run
4 ruby3.3-6.2 - 26936466164.4 04 Jun 2026 07:06AM UTC 27
96.27
GitHub Action Run
5 ruby3.1-7.0 - 26936466164.5 04 Jun 2026 07:06AM UTC 27
39.19
GitHub Action Run
6 ruby3.1-6.2 - 26936466164.6 04 Jun 2026 07:06AM UTC 27
96.27
GitHub Action Run
7 ruby3.3-7.0 - 26936466164.7 04 Jun 2026 07:06AM UTC 27
39.21
GitHub Action Run
8 ruby3.2-7.0 - 26936466164.8 04 Jun 2026 07:06AM UTC 27
39.19
GitHub Action Run
Source Files on build 26936466164
  • Tree
  • List 27
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c0f39e0d on github
  • Prev Build on main (#26054711648)
  • Next Build on main (#26936740220)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc