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

dart-lang / tools
94%

Build:
DEFAULT BRANCH: main
Repo Added 23 Mar 2023 08:48PM UTC
Token WBXQZxc83fDYV6wbbPORWqij8zVKSpSZe regen
Build 700 Last
Files 10
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • add_issues_links
  • badges
  • ci_cleanup
  • cleanup_silly
  • cli-config-coverage
  • cli-config-dev
  • cli_config-sync
  • cli_config_docs
  • cov_corner_case
  • cov_filter_ignored
  • cov_iso_hang
  • cov_pub
  • cov_rpc_error
  • cov_workspaces
  • cov_yaml
  • coverage-flags-yaml
  • coverage_update_mocks
  • covpubprep
  • dependabot/github_actions/actions/checkout-3.5.0
  • dependabot/github_actions/actions/checkout-3.5.2
  • dependabot/github_actions/actions/checkout-3.5.3
  • dependabot/github_actions/actions/checkout-3.6.0
  • dependabot/github_actions/actions/checkout-4.1.0
  • dependabot/github_actions/actions/checkout-4.1.1
  • dependabot/github_actions/actions/checkout-4.1.2
  • dependabot/github_actions/actions/checkout-4.1.4
  • dependabot/github_actions/coverallsapp/github-action-2.0.0
  • dependabot/github_actions/coverallsapp/github-action-2.1.2
  • dependabot/github_actions/coverallsapp/github-action-2.2.0
  • dependabot/github_actions/coverallsapp/github-action-2.2.1
  • dependabot/github_actions/coverallsapp/github-action-2.2.3
  • dependabot/github_actions/dart-lang/setup-dart-1.6.0
  • dependabot/github_actions/dart-lang/setup-dart-1.6.2
  • dependabot/github_actions/dart-lang/setup-dart-1.6.4
  • dependabot/github_actions/github-actions-130e275bbf
  • dependabot/github_actions/github-actions-4bbd769b2c
  • dependabot/github_actions/github-actions-5cd08569fb
  • dependabot/github_actions/github-actions-6a5076a08d
  • dependabot/github_actions/github-actions-821e67d316
  • dependabot/github_actions/github-actions-9c54b75f35
  • dependabot/github_actions/github-actions-aa3137d618
  • dependabot/github_actions/github-actions-ad14d08c93
  • dependabot/github_actions/github-actions-e6ee9d7de3
  • dependabot/github_actions/github-actions-edf2abb101
  • dependabot/github_actions/github-actions-fa0ebbeeaa
  • dependabot/github_actions/github-actions-fae3105be2
  • dependabot/github_actions/github-actions-fc897e6b79
  • deploy_markdown_playground
  • dropped_collections
  • feat/language-version-package
  • feat/preserve-fenced-code-block-metadata
  • feature/fail_under
  • fix-line-ending-bug
  • fix-perform-edit
  • fix-windows
  • fix520
  • fix685
  • fix_analysis
  • fix_deploy_markdown
  • fix_lints
  • fix_markdown
  • fix_single_element_map
  • have-ci-checks-run-for-all-PR-branches
  • issue_links
  • kevmoo-patch-1
  • lint_cleanup
  • main
  • markdown
  • markdown/fenced-code-block-indent-handling
  • markdown_example_cleanup
  • markdown_fix_crash_test
  • markdown_fix_doc_commetns
  • md-html-multiline-comment
  • merge-coverage-package
  • merge-markdown-package
  • merge-yaml_edit-package
  • more_cleanup
  • non-string-map-keys
  • normalize_workflows
  • optional-string-valid-values
  • patch-exception-on-616
  • patch-tests-for-588-2
  • remove-pub-run
  • remove_options_dups
  • resolve-paths-windows
  • revert-2295-revert-2340a3a
  • revert-2340a3a
  • setup_dart
  • sortReadme
  • string-list
  • update_example
  • update_markdown_example_html
  • update_pkg_cli_config
  • v0.1.0
  • validate_setup_dart
  • vm_service_15
  • yaml_edit-crash-test
  • yaml_edit_2.2.4

12 Mar 2026 08:33PM UTC coverage: 93.927% (-2.0%) from 95.976%
23100011580

push

github

web-flow
Optimize LineScanner newline detection and fix backwards position bug (#2342)

- Replaced RegExp reliance in `LineScanner` (such as `_newlinesIn`) with manual code unit iteration to avoid unnecessary allocations and scanning overhead.
- Improved performance in core loop methods (`readChar`, `scanChar`, `scan`) which directly cascades to `SpanScanner`.
- Fixed a `RangeError` bug when setting `position` backwards across a `\r\n` boundary by completely rewriting the bounded boundary-checking loop.
- Added a benchmark script to measure raw throughput improvements.
- Added comprehensive test coverage in `line_scanner_test.dart` for backwards boundary traversal.

### Performance Comparison

| Benchmark Target | Before (us) | After (us) | Change (%) | Status |
| :--- | :--- | :--- | :--- | :--- |
| **StringScanner readChar** | 16,790 | 16,430 | -2.1% | Minor Improv. |
| **LineScanner readChar** | 57,328 | 55,491 | -3.2% | Minor Improv. |
| **SpanScanner readChar** | 49,400 | 50,158 | +1.5% | Slight Regression |
| **StringScanner scan** | 1,103,350 | 1,102,107 | -0.1% | Negligible |
| **LineScanner scan** | 2,185,230 | 1,338,592 | **-38.7%** | **Major Win** |
| **SpanScanner scan** | 1,209,363 | 1,198,558 | -0.9% | Minor Improv. |

696 of 741 relevant lines covered (93.93%)

4.08 hits per line

Relevant lines Covered
Build:
Build:
741 RELEVANT LINES 696 COVERED LINES
4.08 HITS PER LINE
Source Files on main
  • Tree
  • List 10
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
23100011580 main Optimize LineScanner newline detection and fix backwards position bug (#2342) - Replaced RegExp reliance in `LineScanner` (such as `_newlinesIn`) with manual code unit iteration to avoid unnecessary allocations and scanning overhead. - Improved p... push 15 Mar 2026 01:05AM UTC web-flow github
93.93
23099652318 main Optimize LineScanner newline detection and fix backwards position bug (#2342) - Replaced RegExp reliance in `LineScanner` (such as `_newlinesIn`) with manual code unit iteration to avoid unnecessary allocations and scanning overhead. - Improved p... push 15 Mar 2026 12:28AM UTC web-flow github
95.98
23099495995 main Optimize LineScanner newline detection and fix backwards position bug (#2342) - Replaced RegExp reliance in `LineScanner` (such as `_newlinesIn`) with manual code unit iteration to avoid unnecessary allocations and scanning overhead. - Improved p... push 15 Mar 2026 12:18AM UTC web-flow github
96.63
23099418398 main Optimize LineScanner newline detection and fix backwards position bug (#2342) - Replaced RegExp reliance in `LineScanner` (such as `_newlinesIn`) with manual code unit iteration to avoid unnecessary allocations and scanning overhead. - Improved p... push 15 Mar 2026 12:13AM UTC web-flow github
100.0
22810642364 main Fix CI badge link in README.md (#2337) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> push 08 Mar 2026 01:00AM UTC web-flow github
93.93
22810340759 main Fix CI badge link in README.md (#2337) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> push 08 Mar 2026 12:25AM UTC web-flow github
95.98
22810209094 main Fix CI badge link in README.md (#2337) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> push 08 Mar 2026 12:15AM UTC web-flow github
96.63
22810143822 main Fix CI badge link in README.md (#2337) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> push 08 Mar 2026 12:10AM UTC web-flow github
100.0
22532616215 main Handle out of order disconnects and reconnects. (#2305) push 01 Mar 2026 01:04AM UTC web-flow github
93.93
22532248833 main Handle out of order disconnects and reconnects. (#2305) push 01 Mar 2026 12:27AM UTC web-flow github
95.98
See All Builds (676)

Badge your Repo: tools

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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