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

go-xlan / protoenum
56%

Build:
DEFAULT BRANCH: main
Repo Added 15 Nov 2025 10:46AM UTC
Token ZgnWhKQysxxeFovoABDKXyMNvgXqUb8ds regen
Build 12 Last
Files 10
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • main
  • refs/tags/v0.0.2
  • refs/tags/v0.0.3
  • refs/tags/v0.0.4
  • refs/tags/v0.0.5
  • refs/tags/v0.0.6
  • refs/tags/v0.0.7

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

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

Relevant lines Covered
Build:
Build:
387 RELEVANT LINES 216 COVERED LINES
39.34 HITS PER LINE
Source Files on main
  • Tree
  • List 10
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20059328669 main 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... push 09 Dec 2025 09:58AM UTC yangyile1990 github
55.81
20059332418 refs/tags/v0.0.7 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... push 09 Dec 2025 09:58AM UTC yangyile1990 github
55.81
19853578625 main Extend Enums with default accessors and valid list methods - Add GetDefaultEnum() and GetDefaultPure() methods - Add ListValidEnums() and ListValidPures() methods (excluding default) - Fix English/Chinese comment wording in test and demo files - ... push 02 Dec 2025 09:25AM UTC yyle88 github
63.86
19853582555 refs/tags/v0.0.6 Extend Enums with default accessors and valid list methods - Add GetDefaultEnum() and GetDefaultPure() methods - Add ListValidEnums() and ListValidPures() methods (excluding default) - Fix English/Chinese comment wording in test and demo files - ... push 02 Dec 2025 09:25AM UTC yyle88 github
63.86
19847602497 refs/tags/v0.0.5 Streamline enum code with naming and comment updates - Remove Hans() method with ambiguous semantics - Use slices.Clone() instead of append pattern - Shorten generic type params to P/E/M - Update English/Chinese comments - Update README documenta... push 02 Dec 2025 04:52AM UTC yangyile1990 github
63.73
19847599714 main Streamline enum code with naming and comment updates - Remove Hans() method with ambiguous semantics - Use slices.Clone() instead of append pattern - Shorten generic type params to P/E/M - Update English/Chinese comments - Update README documenta... push 02 Dec 2025 04:52AM UTC yangyile1990 github
63.73
19817898644 refs/tags/v0.0.4 feat: Add ListEnums and ListPures methods to enum collection This commit introduces two new methods to the `Enums` collection: - `ListEnums()`: Returns a slice of Protobuf enum values. - `ListPures()`: Returns a slice of plain Go enum values. Th... push 01 Dec 2025 09:35AM UTC yangyile1990 github
64.11
19817887154 main feat: Add ListEnums and ListPures methods to enum collection This commit introduces two new methods to the `Enums` collection: - `ListEnums()`: Returns a slice of Protobuf enum values. - `ListPures()`: Returns a slice of plain Go enum values. Th... push 01 Dec 2025 09:34AM UTC yangyile1990 github
64.11
19782879578 refs/tags/v0.0.3 Feat(enum): 添加标准的朴素枚举和使用泛型元数据取代描述信息 这次提交对核心的 Enum 及 Enums 结构进行了重构,通过利用 Go 泛型来显著增强类型安全性与灵活性。 主要改动包括: - Enum 和 Enums 结构现在接受两个新的泛型类型参数:plainEnum 和 extraMeta。 - plainEnum 允许将 Protobuf 枚举与一个原生 Go 枚举类型(例如 type StatusType string)关联,从而提供编译时类型安全,并消除了对字符串... push 29 Nov 2025 10:51AM UTC yangyile1990 github
52.17
19782877867 main Feat(enum): 添加标准的朴素枚举和使用泛型元数据取代描述信息 这次提交对核心的 Enum 及 Enums 结构进行了重构,通过利用 Go 泛型来显著增强类型安全性与灵活性。 主要改动包括: - Enum 和 Enums 结构现在接受两个新的泛型类型参数:plainEnum 和 extraMeta。 - plainEnum 允许将 Protobuf 枚举与一个原生 Go 枚举类型(例如 type StatusType string)关联,从而提供编译时类型安全,并消除了对字符串... push 29 Nov 2025 10:50AM UTC yangyile1990 github
52.17
See All Builds (12)

Badge your Repo: protoenum

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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