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

sds / mock_redis / 12041341301
98%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2024 12:24AM 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

27 Nov 2024 12:23AM UTC coverage: 98.3% (+0.3%) from 98.046%
12041341301

push

github

web-flow
Support Redis-rb v5 (#314)

This is an attempt to fix https://github.com/sds/mock_redis/issues/281.
This PR was also tested using the test suite of our service.

There are a few decisions I made regarding this PR, please let me know
if it's not appropriate:

1. Error from Redis now contains the redis connection URL
- To fix this, I created `MockRedis::Error` module which decorate
`Redis::CommandError` and related errors with the connection URL
- I replace most of the `Redis::CommandError` with the new module
wrapper
2. Some methods now return integer as output instead of boolean and
`exists_returns_integer` is removed
  - I replace the output as is
3. Interfaces of most data structures (Hash, Set, ...) now validate type
to be 4 main primitive types
- `assert_type` is added to validate the arguments. Currently it doesn't
look very clean, so any improvements would be great.
4. `sadd`, `srem` now support multiple arguments
5. Transaction: `multi` now needs to call with a block and
`discard`/`exec` cannot be called outside that block anymore
- I tried to refactor the logic to make the tests pass, but I'm not
entirely confident that it works correctly

147 of 150 new or added lines in 13 files covered. (98.0%)

1 existing line in 1 file now uncovered.

1850 of 1882 relevant lines covered (98.3%)

1615.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.47
-0.68% lib/mock_redis/set_methods.rb
1
98.08
0.12% lib/mock_redis/stream_methods.rb
1
98.44
0.0% lib/mock_redis/string_methods.rb

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.47
-0.68% lib/mock_redis/set_methods.rb
Jobs
ID Job ID Ran Files Coverage
1 ruby3.3-7.0 - 12041341301.1 27 Nov 2024 12:24AM UTC 27
33.23
GitHub Action Run
2 ruby3.2-6.2 - 12041341301.2 27 Nov 2024 12:24AM UTC 27
98.3
GitHub Action Run
3 ruby3.2-7.0 - 12041341301.3 27 Nov 2024 12:24AM UTC 27
33.21
GitHub Action Run
4 ruby3.1-6.2 - 12041341301.4 27 Nov 2024 12:24AM UTC 27
98.3
GitHub Action Run
5 ruby3.0-7.0 - 12041341301.5 27 Nov 2024 12:24AM UTC 27
33.21
GitHub Action Run
6 ruby3.0-6.2 - 12041341301.6 27 Nov 2024 12:24AM UTC 27
98.3
GitHub Action Run
7 ruby3.3-6.2 - 12041341301.7 27 Nov 2024 12:24AM UTC 27
98.3
GitHub Action Run
8 ruby3.1-7.0 - 12041341301.8 27 Nov 2024 12:24AM UTC 27
33.21
GitHub Action Run
Source Files on build 12041341301
  • Tree
  • List 27
  • Changed 20
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 615c184c on github
  • Prev Build on main (#11847154115)
  • Next Build on main (#12041413671)
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

© 2025 Coveralls, Inc