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

sds / mock_redis / 6088069967
98%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2023 05:55PM 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

05 Sep 2023 05:54PM UTC coverage: 97.95% (-0.1%) from 98.059%
6088069967

push

github

web-flow
Type streamy (#275)

I think the recent change to scan that added the call to `type` is
breaking me because I'm using streams. I'm getting the following stack
trace:
```
    ArgumentError:
       Not sure how #<MockRedis::Stream:0x00007fcceb5db3e8 @members=#<Set: {[#<MockRedis::Stream::Id:0x00007fcceb5db2d0 @exclusive=false, @sequence=0, @timestamp=1691767286667>, {"kind"=>"created", "type"=>"group", "data"=>"{\"name\":\"DEFAULT\",\"scope\":\"TEST\",\"updated_at\":1691767286666973366}"}], [#<MockRedis::Stream::Id:0x00007fcceb5e3278 @exclusive=false, @sequence=1, @timestamp=1691767286667>, {"kind"=>"deployed", "type"=>"group", "data"=>"{\"name\":\"DEFAULT\",\"scope\":\"TEST\",\"updated_at\":1691767286666973366}"}]}>, @last_id=#<MockRedis::Stream::Id:0x00007fcceb5e3278 @exclusive=false, @sequence=1, @timestamp=1691767286667>> got in here
     # ./vendor/bundle/ruby/3.1.0/gems/mock_redis-0.37.0/lib/mock_redis/database.rb:271:in `type'
     # ./vendor/bundle/ruby/3.1.0/gems/mock_redis-0.37.0/lib/mock_redis/utility_methods.rb:40:in `block in common_scan'
     # ./vendor/bundle/ruby/3.1.0/gems/mock_redis-0.37.0/lib/mock_redis/utility_methods.rb:38:in `select'
     # ./vendor/bundle/ruby/3.1.0/gems/mock_redis-0.37.0/lib/mock_redis/utility_methods.rb:38:in `common_scan'
     # ./vendor/bundle/ruby/3.1.0/gems/mock_redis-0.37.0/lib/mock_redis/database.rb:155:in `scan'
     # ./vendor/bundle/ruby/3.1.0/gems/mock_redis-0.37.0/lib/mock_redis/database.rb:162:in `block in scan_each'
     # ./vendor/bundle/ruby/3.1.0/gems/mock_redis-0.37.0/lib/mock_redis/database.rb:161:in `loop'
     # ./vendor/bundle/ruby/3.1.0/gems/mock_redis-0.37.0/lib/mock_redis/database.rb:161:in `scan_each'
```

I think this addition to add `streamy` to `type` will fix it. Not sure
where in the tests this should go ...

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

1768 of 1805 relevant lines covered (97.95%)

1568.26 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
97.81
-0.87% lib/mock_redis/database.rb
Jobs
ID Job ID Ran Files Coverage
1 ruby3.1-6.2 - 6088069967.1 05 Sep 2023 05:55PM UTC 25
97.95
GitHub Action Run
2 ruby3.2-6.2 - 6088069967.2 05 Sep 2023 05:55PM UTC 25
97.95
GitHub Action Run
3 ruby3.0-6.2 - 6088069967.3 05 Sep 2023 05:55PM UTC 25
97.95
GitHub Action Run
4 ruby2.7-6.2 - 6088069967.4 05 Sep 2023 05:55PM UTC 25
97.95
GitHub Action Run
Source Files on build 6088069967
  • Tree
  • List 25
  • Changed 7
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f4a151d3 on github
  • Prev Build on main (#5802724167)
  • Next Build on main (#6634624605)
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