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

sds / mock_redis / 6681208801 / 1
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2023 04:28AM UTC
Files 25
Run time 1s
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

29 Oct 2023 04:24AM UTC coverage: 98.014% (+0.06%) from 97.959%
6681208801.1

push

github

web-flow
Implement `call` method in `pipelined` block (#283)

Resolves https://github.com/sds/mock_redis/issues/278

Seems like everything is working; however, I'm not sure if moving
`#call` from `MockRedis` to `MockRedis::Database` has some side-effects
-- is there a reason `call` was separated from other commands?

I also changed `send` to `public_send` in `call` implementation (seems
to be OK, I'm not sure if there are any edge cases when calling private
is a usecase).

Also, I think we should allow mix-cased variants of Redis methods
(`RedisMock.new.call(["GET", 123])` does not work right now, but redis
commands are case insensitive).

Usage example:

```ruby
redis = MockRedis.new

redis.pipelined do |pipeline|
  pipeline.call(["get", "foo"])
  pipeline.call(["get", "bar"])
end
```

Co-authored-by: ya2k <yk@wfolio.com>

1777 of 1813 relevant lines covered (98.01%)

392.47 hits per line

Source Files on job ruby3.0-6.2 - 6681208801.1
  • Tree
  • List 25
  • Changed 8
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6681208801
  • 29961e0f on github
  • Prev Job for on main (#6645025172.1)
  • Next Job for on main (#6728429487.1)
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