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

kettle-rb / tree_haver / 20890570373
87%

Build:
DEFAULT BRANCH: main
Ran 11 Jan 2026 06:10AM UTC
Jobs 1
Files 30
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

11 Jan 2026 06:07AM UTC coverage: 87.954% (+1.1%) from 86.857%
20890570373

push

github

pboling
💥 BREAKING CHANGES; new features; fixes; more specs

### Added

- **Shared Example Groups for Backend API Compliance Testing**
  - `node_api_examples.rb` - Tests for Node API compliance:
    - `"node api compliance"` - Core Node interface (type, start_byte, end_byte, children)
    - `"node position api"` - Position API (start_point, end_point, start_line, end_line, source_position)
    - `"node children api"` - Children traversal (#child, #first_child, #last_child)
    - `"node enumerable behavior"` - Enumerable methods (#each, #map, #select, #find)
    - `"node comparison behavior"` - Comparison and equality (#==, #<=>, #hash)
    - `"node text extraction"` - Text content (#text, #to_s)
    - `"node inspection"` - Debug output (#inspect)
  - `tree_api_examples.rb` - Tests for Tree API compliance:
    - `"tree api compliance"` - Core Tree interface (root_node, source, errors, warnings, comments)
    - `"tree error handling"` - Error detection (#has_error?, #errors)
    - `"tree traversal"` - Depth-first traversal via root_node
  - `parser_api_examples.rb` - Tests for Parser API compliance:
    - `"parser api compliance"` - Core Parser interface (#parse, #parse_string, #language=)
    - `"parser incremental parsing"` - Incremental parsing support
    - `"parser error handling"` - Error recovery behavior
  - `language_api_examples.rb` - Tests for Language API compliance:
    - `"language api compliance"` - Core Language interface (#backend, #name/#language_name)
    - `"language comparison"` - Comparison and equality
    - `"language factory methods"` - Factory methods (.from_library, .from_path)
  - `backend_api_examples.rb` - Tests for Backend module API compliance:
    - `"backend module api"` - Backend availability and capabilities
    - `"backend class structure"` - Nested class verification
    - `"backend integration"` - Full parse cycle testing
  - `spec/support/shared_examples.rb` - Master loader for all shared examples
  - `spec/integration/ba... (continued)

929 of 1171 branches covered (79.33%)

Branch coverage included in aggregate %.

68 of 90 new or added lines in 6 files covered. (75.56%)

18 existing lines in 1 file now uncovered.

2291 of 2490 relevant lines covered (92.01%)

70.03 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
71.36
1.18% lib/tree_haver/parser.rb
3
83.26
1.9% lib/tree_haver/backends/citrus.rb
4
89.31
15.91% lib/tree_haver/backends/parslet.rb
7
71.33
-1.4% lib/tree_haver/backends/ffi.rb
7
88.64
-9.65% lib/tree_haver/backends/mri.rb

Uncovered Existing Lines

Lines Coverage ∆ File
18
90.39
-0.04% lib/tree_haver.rb
Jobs
ID Job ID Ran Files Coverage
1 20890570373.1 11 Jan 2026 06:10AM UTC 30
87.95
GitHub Action Run
Source Files on build 20890570373
  • Tree
  • List 30
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 07e06173 on github
  • Prev Build on main (#20887817615)
  • Next Build on main (#20891049801)
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