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

go-xlan / protoenum / 20059332418
56%
main: 56%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.0.7
DEFAULT BRANCH: main
Ran 09 Dec 2025 09:58AM UTC
Jobs 4
Files 10
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

09 Dec 2025 09:53AM UTC coverage: 55.814% (-8.0%) from 63.863%
20059332418

push

github

yangyile1990
Rename API methods and add Lookup existence checks

- Rename Pure() to Basic(), Base() to Proto() in Enum struct
- Rename GetByEnum() to GetByProto() in Enums collection
- Rename ListEnums/ListPures to ListProtos/ListBasics
- Rename ListValidEnums/ListValidPures to ListValidProtos/ListValidBasics
- Rename GetDefaultEnum/GetDefaultPure to GetDefaultProto/GetDefaultBasic
- Rename WithDefaultEnum() to WithDefault()
- Change generic param E to B (representing Basic)
- Add LookupByProto/LookupByCode/LookupByName/LookupByBasic methods
- Add SetDefaultProto/SetDefaultBasic/SetDefaultValid methods
- Add WithDefaultProto/WithDefaultBasic/WithDefaultValid chain methods
- Move default-value methods to with_default.go
- Add internal/utils package with pointer utilities
- Update dependencies in go.mod/go.sum
- Update README.md and README.zh.md with new API documentation
- Add English/Chinese comments
- Update demos and tests to match new API naming

103 of 181 new or added lines in 7 files covered. (56.91%)

2 existing lines in 2 files now uncovered.

216 of 387 relevant lines covered (55.81%)

39.34 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
0.0
0.0% internal/demos/demo1x/main.go
7
0.0
0.0% internal/demos/demo3x/main.go
8
0.0
0.0% internal/demos/demo2x/main.go
12
0.0
internal/utils/utils.go
23
59.65
with_default.go
25
73.21
-18.09% protoenums.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% internal/demos/demo2x/main.go
1
0.0
0.0% internal/demos/demo3x/main.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.25.x - 20059332418.1 09 Dec 2025 09:58AM UTC 10
40.05
GitHub Action Run
2 Go-1.24.x - 20059332418.2 09 Dec 2025 09:58AM UTC 10
40.05
GitHub Action Run
3 Go-stable - 20059332418.3 09 Dec 2025 09:58AM UTC 10
40.05
GitHub Action Run
4 Go-1.23.x - 20059332418.4 09 Dec 2025 09:58AM UTC 10
55.81
GitHub Action Run
Source Files on build 20059332418
  • Tree
  • List 10
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 27f2c3ae on github
  • Prev Build on main (#19853578625)
  • 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

© 2026 Coveralls, Inc