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

umputun / tg-spam / 17335303633
82%
master: 83%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.23.3
DEFAULT BRANCH: master
Ran 29 Aug 2025 10:17PM UTC
Jobs 1
Files 29
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 Aug 2025 09:30PM UTC coverage: 81.681% (+0.06%) from 81.622%
17335303633

Pull #315

github

umputun
Add duplicate message detection for spam filtering

Implement duplicate message detection to identify spam from users
sending the same message repeatedly. Uses LRU cache with 10K user
limit to prevent memory exhaustion and O(1) hash-based tracking.

Features:
- Configurable threshold for number of duplicates to trigger spam
- Time window for tracking duplicate messages
- Automatic cleanup of expired entries
- Thread-safe implementation with mutex protection
- LRU eviction when user limit is reached

Configuration:
- --duplicates.threshold: number of identical messages (default: 0, disabled)
- --duplicates.window: time window for detection (default: 1h)

Includes comprehensive tests for functionality, concurrency, and edge cases.
Pull Request #315: Add duplicate message detection for spam filtering

107 of 122 new or added lines in 3 files covered. (87.7%)

2 existing lines in 1 file now uncovered.

5199 of 6365 relevant lines covered (81.68%)

66.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
64.15
-0.39% app/main.go
9
91.0
lib/tgspam/duplicate.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
76.77
-2.02% lib/tgspam/plugin/watcher.go
Jobs
ID Job ID Ran Files Coverage
1 17335303633.1 29 Aug 2025 10:17PM UTC 29
81.68
GitHub Action Run
Source Files on build 17335303633
  • Tree
  • List 29
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #315
  • PR Base - master (#16972293495)
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