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

go-xlan / protoenum
64%

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

02 Dec 2025 09:24AM UTC coverage: 63.863% (+0.1%) from 63.732%
19853578625

push

github

yyle88
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
- Update demo1x/demo2x/demo3x with new function examples
- Update English/Chinese README with API documentation
- Add tests covering new methods and edge cases

25 of 38 new or added lines in 4 files covered. (65.79%)

205 of 321 relevant lines covered (63.86%)

39.83 hits per line

Relevant lines Covered
Build:
Build:
321 RELEVANT LINES 205 COVERED LINES
39.83 HITS PER LINE
Source Files on main
  • Tree
  • List 8
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
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
19388709974 refs/tags/v0.0.2 Improve protoenum with strict validation and enhanced design - Add strict validation using must package (must.Null/must.Full/must.Nice) - Add MustGetByEnum/MustGetByCode/MustGetByName/MustGetByDesc/MustGetByHans methods - Add SetDefault/UnsetDefa... push 15 Nov 2025 10:46AM UTC yyle88 github
52.3
19388708882 main Improve protoenum with strict validation and enhanced design - Add strict validation using must package (must.Null/must.Full/must.Nice) - Add MustGetByEnum/MustGetByCode/MustGetByName/MustGetByDesc/MustGetByHans methods - Add SetDefault/UnsetDefa... push 15 Nov 2025 10:46AM UTC yyle88 github
52.3
See All Builds (10)

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

© 2025 Coveralls, Inc