Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop producing next_sections if we've reached the end of the current semantic level #65

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

benbrandt
Copy link
Owner

next_sections produces an iterator over the rest of the text at the current semantic level.

However, we want to preserve the next highest semantic level starting point as a breakpoint, and not have a chunk traverse across it.

This enforces this behavior by limiting the amount of sections that can be iterated over to be before the next level offset.

…t semantic level

`next_sections` produces an iterator over the rest of the text at the current semantic level.

However, we want to preserve the next highest semantic level starting point as a breakpoint, and not have a chunk traverse across it.

This enforces this behavior by limiting the amount of sections that can be iterated over to be before the next level offset.
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (95aed53) 97.63% compared to head (2bd3e23) 97.54%.

Files Patch % Lines
src/lib.rs 95.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
- Coverage   97.63%   97.54%   -0.09%     
==========================================
  Files           4        4              
  Lines         550      571      +21     
==========================================
+ Hits          537      557      +20     
- Misses         13       14       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benbrandt benbrandt merged commit c70f63c into main Nov 30, 2023
7 of 8 checks passed
@benbrandt benbrandt deleted the limit-next-sections branch November 30, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant