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

sds / mock_redis / 10856098106
98%

Build:
DEFAULT BRANCH: main
Ran 13 Sep 2024 09:05PM UTC
Jobs 8
Files 26
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

13 Sep 2024 09:04PM UTC coverage: 98.045% (+0.004%) from 98.041%
10856098106

push

github

web-flow
Add support for optional `count` arg in `rpop` (#308)

`rpop` accepts an optional `count` argument to indicate how many
elements should be removed and returned from the list

See
https://github.com/redis/redis-rb/blob/9938411bd/lib/redis/commands/lists.rb#L114

Also had to change the shared examples a little bit to be able to pass
the arguments they use and make a more accurate expectation on the
error.
I think the `args_for_method` is making an assumption when the `arity <
0` and always using `[1, 2]` (+ the key), but that doesn't work in all
cases. In particular, `rpop` now has `arity` `-2` (because it has 1
required arg + 1 optional) so calling `rpop(key, 1, 2)` was causing an
argument error instead of `Redis::CommandError` (which we expect because
of the redis value not being a list).

At first I tried to change `args_for_method` but it made other tests
fail. And i suspect it won't be possible to have a generic args
generator only based on arity (because some methods for example accept
`*args` but the logic requires 1 or 2 args)

That's why i thought it might be a good idea for each test that includes
the shared example to indicate what the correct args to make a valid
call should be, but let me know what you think!

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

1805 of 1841 relevant lines covered (98.04%)

1611.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby3.1-7.0 - 10856098106.1 13 Sep 2024 09:05PM UTC 26
32.37
GitHub Action Run
2 ruby3.1-6.2 - 10856098106.2 13 Sep 2024 09:05PM UTC 26
98.04
GitHub Action Run
3 ruby3.2-6.2 - 10856098106.3 13 Sep 2024 09:05PM UTC 26
98.04
GitHub Action Run
4 ruby3.3-6.2 - 10856098106.4 13 Sep 2024 09:05PM UTC 26
98.04
GitHub Action Run
5 ruby3.0-7.0 - 10856098106.5 13 Sep 2024 09:05PM UTC 26
32.37
GitHub Action Run
6 ruby3.0-6.2 - 10856098106.6 13 Sep 2024 09:05PM UTC 26
98.04
GitHub Action Run
7 ruby3.3-7.0 - 10856098106.7 13 Sep 2024 09:05PM UTC 26
32.39
GitHub Action Run
8 ruby3.2-7.0 - 10856098106.8 13 Sep 2024 09:05PM UTC 26
32.37
GitHub Action Run
Source Files on build 10856098106
  • Tree
  • List 26
  • Changed 11
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9df4b4f0 on github
  • Prev Build on main (#9391658776)
  • Next Build on main (#10856135342)
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