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

MushroomObserver / mushroom-observer / 27115039512
98%
main: 98%

Build:
Build:
LAST BUILD BRANCH: 3745-import-from-user-supplied-url
DEFAULT BRANCH: main
Ran 08 Jun 2026 03:59AM UTC
Jobs 1
Files 1473
Run time 2min
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

08 Jun 2026 03:55AM UTC coverage: 97.561% (+0.05%) from 97.516%
27115039512

Pull #4477

github

nimmolo
Coverage chase on #4477: cover branches I touched, delete dead method

Branches added or covered:
- new test/controllers/application_controller_test.rb with 9
  tests covering `change_theme_to` (3 branches), `fix_bad_domains`
  GET-on-bad-host redirect, `extra_gc`,
  `default_thumbnail_size` (user-pref vs session fallback), and
  `default_thumbnail_size_set` (user-pref vs session fallback).
  Hosted on `InfoController` so the full filter stack runs.
  Skips `kick_out_excessive_traffic` / `kick_out_robots` /
  `is_cool?` per the per-PR instruction.
- `test_index_advanced_search_success` in images_controller_test:
  covers the `[query, {}]` success return tuple in
  `ImagesController#advanced_search` (existing
  `test_index_advanced_search_error` only hit the rescue path).
- `test_index_project_with_unknown_id_redirects` +
  `test_index_species_list_with_unknown_id_redirects` in
  observations_controller_index_test: cover the
  `find_or_goto_index` bail-outs in
  `ObservationsController::Index#project` and `#species_list`.
- `test_create_success_turbo_stream_renders_update_observation`
  in herbaria_controller_test: covers the turbo_stream branch
  of `HerbariaController#show_modal_flash_or_show_herbarium`
  (two flash_notices + `_update_observation` partial render).

Deleted:
- `HerbariaController#modal_form_action` (dead method — no
  callers anywhere in the codebase; was contributing 3 missed
  coverage lines).

Skipped (require stubbing infra not currently used in MO's
test suite):
- `comments_controller.rb:264` — `@comment.destroy` returning false
- `herbaria_controller.rb:240-242, 259-261` — `@herbarium.save`
  returning false after `validate_herbarium!` passes
- `locations/descriptions_controller.rb:243-244` — the no-change
  branch (existing `test_update_description_no_changes` asserts
  the flash but SimpleCov shows the branch as not taken on the
  description fixtures used)
- `observations_controller/index.rb:82` — defensive raise that
  fires... (continued)
Pull Request #4477: Index sort options: hoist to controllers; delete 13 helpers

69 of 69 new or added lines in 20 files covered. (100.0%)

29 existing lines in 1 file now uncovered.

45033 of 46159 relevant lines covered (97.56%)

757.2 hits per line

Coverage Regressions

Lines Coverage ∆ File
29
80.92
0.0% app/classes/query/modules/validation.rb
Jobs
ID Job ID Ran Files Coverage
1 27115039512.1 08 Jun 2026 03:59AM UTC 1473
97.56
GitHub Action Run
Source Files on build 27115039512
  • Tree
  • List 1473
  • Changed 24
  • Source Changed 24
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27115039512
  • Pull Request #4477
  • PR Base - main (#27112218755)
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