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

sds / mock_redis / 5802662698
98%

Build:
DEFAULT BRANCH: main
Ran 08 Aug 2023 10:40PM UTC
Jobs 4
Files 25
Run time 2s
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

pending completion
5802662698

push

github

web-flow
Add support for scanning on keys containing hash tags (#273)

This PR adds support for scanning on keys containing hash tags. This is
mainly relevant when working with Redis in cluster mode. If `mock_redis`
is not supposed to support Cluster mode, I understand if you want to
close this PR.

[Hash tags](https://redis.io/docs/management/scaling/) are parts of a
key surrounded by `{}`. This is used in cluster mode to ensure a set of
keys is stored on the same node. MockRedis does not support this and
scanning on a key containing a hash tag does not work because the
resulting regex pattern created by `redis_pattern_to_ruby_regex` does
not escape curly braces.

The added commit is a suggestion on how support can be added. If there
is a better way, feel free to edit directly or notify me and I will make
the required change.

1768 of 1803 relevant lines covered (98.06%)

1570.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby3.0-6.2 - 5802662698.1 08 Aug 2023 10:40PM UTC 25
98.06
GitHub Action Run
2 ruby3.2-6.2 - 5802662698.2 08 Aug 2023 10:40PM UTC 25
98.06
GitHub Action Run
3 ruby3.1-6.2 - 5802662698.3 08 Aug 2023 10:40PM UTC 25
98.06
GitHub Action Run
4 ruby2.7-6.2 - 5802662698.4 08 Aug 2023 10:40PM UTC 25
98.06
GitHub Action Run
Source Files on build 5802662698
  • Tree
  • List 25
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 365ac373 on github
  • Prev Build on main (#5802653672)
  • Next Build on main (#5802724167)
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