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

umputun / secrets / 20257038396
87%
master: 84%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v2.2.4
DEFAULT BRANCH: master
Ran 16 Dec 2025 05:00AM UTC
Jobs 1
Files 12
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

16 Dec 2025 04:59AM UTC coverage: 87.206% (+0.8%) from 86.444%
20257038396

Pull #87

github

umputun
refactor: address code review findings for file upload feature

- fix loadMessageCtrl to handle file messages (serve download instead of rendering binary as text)
- add constant-time protection to downloadFileCtrl and loadMessageCtrl
- add duration <= 0 validation to MakeMessage for consistency
- refactor MakeFileMessage to use FileRequest struct instead of 5 parameters
- rename messeger.go to messager.go (typo fix)
- extract helpers: serveFileDownload, validatePinValues, sanitizeContentType
- add tests for generateFileLinkCtrl and downloadFileCtrl error paths
- add test for MakeFileMessage engine.Save error propagation
- fix generateFileLinkCtrl to render file-input partial for validation errors
Pull Request #87: feat: add file upload/download support

362 of 412 new or added lines in 4 files covered. (87.86%)

18 existing lines in 1 file now uncovered.

1261 of 1446 relevant lines covered (87.21%)

17.57 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
0.0
0.0% app/main.go
14
90.59
0.5% app/server/server.go
33
87.52
-0.67% app/server/web.go

Uncovered Existing Lines

Lines Coverage ∆ File
18
87.52
-0.67% app/server/web.go
Jobs
ID Job ID Ran Files Coverage
1 20257038396.1 16 Dec 2025 05:00AM UTC 12
87.21
GitHub Action Run
Source Files on build 20257038396
  • Tree
  • List 12
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #87
  • PR Base - master (#20248521065)
  • 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