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

umputun / weblist / 20214158010
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: add-e2e-tests
DEFAULT BRANCH: master
Ran 14 Dec 2025 09:08PM UTC
Jobs 1
Files 7
Run time 0s
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

pending completion
20214158010

Pull #34

github

umputun
refactor(server): split monolithic files into focused modules

Split server.go (~1850 lines) and server_test.go (~3860 lines) into smaller,
focused files following Go convention of one test file per source file:

- auth.go/auth_test.go: authentication handlers and token logic
- handlers.go/handlers_test.go: HTTP handlers for directory listing, file operations
- file_ops.go/file_ops_test.go: file listing, sorting, template functions

Additional code quality improvements from review:
- Extract loginTemplateData struct (removes duplicate anonymous structs)
- Add getAuthUser() and getSessionMaxAge() helpers (removes duplicated logic)
- Refactor DetermineContentType() to return ContentTypeInfo struct
- Remove empty TestHandleDownloadErrors stub
Pull Request #34: Add content-based binary detection for viewable files

1828 of 2184 relevant lines covered (83.7%)

13.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20214158010.1 14 Dec 2025 09:08PM UTC 7
83.7
GitHub Action Run
Source Files on build 20214158010
  • Tree
  • List 7
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #34
  • PR Base - master (#20213172670)
  • 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