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

umputun / cronn / 17184271837
73%
master: 75%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.11.0
DEFAULT BRANCH: master
Ran 24 Aug 2025 04:34AM UTC
Jobs 1
Files 19
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

24 Aug 2025 04:32AM UTC coverage: 71.186% (-11.6%) from 82.813%
17184271837

push

github

umputun
refactor(web): replace string literals with type-safe enums

migrate from string-based constants to type-safe enums using go-pkgz/enum
code generator. this eliminates magic strings, provides compile-time type
checking, and improves code maintainability.

changes:
- add enums package with code-generated types for JobStatus, EventType,
  ViewMode, Theme, and SortMode
- replace all string literals with enum constants throughout web package
- update templates to use .String() method for enum comparisons
- add comprehensive package documentation explaining code generation
- enhance error handling with logging for invalid enum parsing
- add defensive default cases to all enum switch statements
- maintain database compatibility through Scan/Value interfaces
- preserve backward compatibility for templates and APIs

benefits:
- compile-time type safety prevents typos and invalid values
- IDE autocomplete for all enum values
- centralized enum definitions in dedicated package
- easier refactoring and maintenance
- better performance with integer comparisons

61 of 376 new or added lines in 6 files covered. (16.22%)

2 existing lines in 1 file now uncovered.

1591 of 2235 relevant lines covered (71.19%)

8.35 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
87.46
-1.12% app/web/web.go
59
0.0
app/web/enums/view_mode_enum.go
61
0.0
app/web/enums/event_type_enum.go
61
0.0
app/web/enums/sort_mode_enum.go
61
0.0
app/web/enums/theme_enum.go
63
0.0
app/web/enums/job_status_enum.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
87.46
-1.12% app/web/web.go
Jobs
ID Job ID Ran Files Coverage
1 17184271837.1 24 Aug 2025 04:34AM UTC 19
71.19
GitHub Action Run
Source Files on build 17184271837
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • abbb9935 on github
  • Prev Build on web-ui (#17183794916)
  • Next Build on web-ui (#17184420735)
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