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

sds / mock_redis / 6681208801
98%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2023 04:27AM 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

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

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>

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

1777 of 1813 relevant lines covered (98.01%)

1569.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby3.0-6.2 - 6681208801.1 29 Oct 2023 04:27AM UTC 25
98.01
GitHub Action Run
2 ruby3.2-6.2 - 6681208801.2 29 Oct 2023 04:27AM UTC 25
98.01
GitHub Action Run
3 ruby3.1-6.2 - 6681208801.3 29 Oct 2023 04:27AM UTC 25
98.01
GitHub Action Run
4 ruby2.7-6.2 - 6681208801.4 29 Oct 2023 04:28AM UTC 25
98.01
GitHub Action Run
Source Files on build 6681208801
  • Tree
  • List 25
  • Changed 8
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 29961e0f on github
  • Prev Build on main (#6645025172)
  • Next Build on main (#6728429487)
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