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

umputun / tg-spam / 25133013538
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: feature/max-short-msg-count-399
DEFAULT BRANCH: master
Ran 29 Apr 2026 08:51PM UTC
Jobs 1
Files 41
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

29 Apr 2026 08:47PM UTC coverage: 83.419% (+0.1%) from 83.275%
25133013538

Pull #400

github

umputun
fix: trim README short-msg-flood section and clarify approved-user guard

Two refinements from post-implementation review:

- README.md: drop the trigger-formula code block, locator-derivation
  paragraph, separate "When triggered" paragraph, dedicated "Rollout
  note", and split-out "Naturally terse legitimate users" paragraph.
  The section now matches the brevity of neighboring checker sections
  (single intro, one Important callout, Configure with). Implementation
  detail belongs in CLAUDE.md (already there).

- lib/tgspam/detector.go: add a comment on the approved-user fast-bail
  in isShortMsgFlood explaining why it exists. In production main.go
  forces FirstMessageOnly=true whenever FirstMessagesCount > 0, so
  approved users short-circuit at the pre-approved branch in Check and
  never reach this method. The guard is defensive against library
  consumers that construct Detector with FirstMessageOnly=false and
  FirstMessagesCount > 0.

Related to #399
Pull Request #400: feat: short-message flood detection for unapproved users

95 of 97 new or added lines in 5 files covered. (97.94%)

8452 of 10132 relevant lines covered (83.42%)

228.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
78.7
1.5% app/storage/locator.go
Jobs
ID Job ID Ran Files Coverage
1 25133013538.1 29 Apr 2026 08:51PM UTC 41
83.42
GitHub Action Run
Source Files on build 25133013538
  • Tree
  • List 41
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #400
  • PR Base - master (#25123809667)
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