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

umputun / remark42 / 19937469031
84%

Build:
DEFAULT BRANCH: master
Ran 04 Dec 2025 05:14PM UTC
Jobs 1
Files 50
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

04 Dec 2025 05:11PM UTC coverage: 84.49% (+0.09%) from 84.403%
19937469031

push

github

web-flow
Implement function to prune string keeping HTML closing tags (#1870)

* Implement function to prune string keeping HTML closing tags

Fixes #1587

* change const name

remove unneeded comment

* move pruneHTML to separated file

* move const back to telegram.go

* Add unit tests for string array manipulation and HTML pruning

Introduce comprehensive test cases for stringArr methods (Push, Pop, Unshift, Shift, String) to ensure correct behavior and state management. Additionally, add tests for HTML pruning functions (pruneHTML, pruneStringToWord) to validate handling of length constraints and formatting scenarios.

* Improve behavior

* Fix pruneHTML to count visible text only, add parent text pruning

- Fix bug where HTML tags were counted toward the character limit
  instead of only visible text content
- Add pruning for parent comment text in Telegram notifications
- Simplify pruneStringToWord using strings.LastIndex
- Remove unused stringArr type and its tests
- Consolidate and simplify test cases

---------

Co-authored-by: Umputun <umputun@gmail.com>
Co-authored-by: Dmitry Verkhoturov <paskal.07@gmail.com>

53 of 55 new or added lines in 2 files covered. (96.36%)

6112 of 7234 relevant lines covered (84.49%)

34.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
96.23
backend/app/notify/prune_html.go
Jobs
ID Job ID Ran Files Coverage
1 19937469031.1 04 Dec 2025 05:14PM UTC 50
84.49
GitHub Action Run
Source Files on build 19937469031
  • Tree
  • List 50
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d01b7387 on github
  • Prev Build on master (#19914891416)
  • Next Build on master (#20042287213)
  • Delete
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

© 2025 Coveralls, Inc