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

MushroomObserver / mushroom-observer / 1779
91%
main: 95%

Build:
Build:
LAST BUILD BRANCH: nimmo-phlex-alert
DEFAULT BRANCH: main
Ran 13 Feb 2019 01:29AM UTC
Jobs 1
Files 457
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

pending completion
1779

Pull #452

travis-ci

web-flow
Improve test coverage of Observation#consensus_naming

The tests did not cover lines 826-827 because the Naming with the highest vote was select'ed first.
```ruby
 806     # First, get the Naming(s) for this Name, if any exists.
 807     matches = namings.select { |n| n.name_id == name_id }
...
 820     # More than one match: take the one with the highest vote.
 821     elsif best_naming = matches.first
 822       best_value = matches.first.vote_cache
 823       matches.each do |naming|
 824         next unless naming.vote_cache > best_value
 825
 826         best_naming = naming
 827         best_value  = naming.vote_cache
 828       end
```
I solved this by making the id of a losing Naming the lowest id, with the result that it's `match.first`.

Hopefully the marginal improvement (2 lines) will make Coveralls happy.
Pull Request #452: [Delivers #163850011, #115980029] Improve preferred id

26 of 26 new or added lines in 2 files covered. (100.0%)

19193 of 21003 relevant lines covered (91.38%)

418.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1779.1 (2.4.1) 13 Feb 2019 01:29AM UTC 0
91.38
Travis Job 1779.1
Source Files on build 1779
  • List 0
  • Changed 96
  • Source Changed 2
  • Coverage Changed 96
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1779
  • Pull Request #452
  • PR Base - master (#1776)
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