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

kettle-rb / tree_haver / 20869243248
87%

Build:
DEFAULT BRANCH: main
Ran 10 Jan 2026 12:09AM UTC
Jobs 1
Files 28
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

10 Jan 2026 12:06AM UTC coverage: 89.69% (-2.1%) from 91.839%
20869243248

push

github

pboling
🥅 Improve error handling

### Changed

- **Language#method_missing**: Simplified error handling in `Language#method_missing`
  - Removed unreachable rescue block for `FFI::NotFoundError`
  - `FFI::NotFoundError` inherits from `LoadError`, so it's already caught by the prior rescue clause
  - Reduces code complexity without changing behavior
- **Parser#initialize**: Simplified error handling in `Parser#initialize`
  - Same fix as Language - removed unreachable `FFI::NotFoundError` handling
  - Added comment noting that `FFI::NotFoundError` inherits from `LoadError`
- **FFI Backend Native#try_load!**: Removed redundant `FFI::NotFoundError` from rescue clause
  - Only rescues `LoadError` now with comment explaining inheritance
- **GrammarFinder.tree_sitter_runtime_usable?**: Removed redundant `StandardError` rescue clause
  - `LoadError` already catches `FFI::NotFoundError`
  - Added comment explaining the inheritance relationship

### Fixed

- **Test Isolation**: Fixed state leakage in `language_registry_spec.rb`
  - Tests were registering real language names (`:toml`, `:json`, `:yaml`) with fake paths
  - These registrations persisted and polluted other tests that expected real grammar paths
  - Changed all tests to use unique test-only language names (prefixed with `test_lang_`)
  - Fixes 2 spec failures when running all tests together (`TreeHaver::Tree#edit` specs)

803 of 990 branches covered (81.11%)

Branch coverage included in aggregate %.

2059 of 2201 relevant lines covered (93.55%)

44.35 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
53
72.73
-18.72% lib/tree_haver/backends/ffi.rb
Jobs
ID Job ID Ran Files Coverage
1 20869243248.1 10 Jan 2026 12:09AM UTC 28
89.69
GitHub Action Run
Source Files on build 20869243248
  • Tree
  • List 28
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 42edc57a on github
  • Prev Build on main (#20847433801)
  • Next Build on main (#20869441360)
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