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

yylego / kratos-errgen
32%
main: 32%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.0.3
DEFAULT BRANCH: main
Repo Added 11 Mar 2026 09:46PM UTC
Token Vd6WFDmtT4tsrSa4yb89S57MH22EJWZEs regen
Build 8 Last
Files 14
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 refs/tags/v0.0.3
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • main
  • refs/tags/v0.0.0
  • refs/tags/v0.0.1
  • refs/tags/v0.0.2
  • refs/tags/v0.0.3

25 Oct 2026 07:01AM UTC coverage: 32.258% (+3.9%) from 28.398%
40171409628

push

github

yyle88
Generate working code from enums nested two levels deep, and move the docs to buf

- An enum nested in a message that sits in a message now generates code that compiles: the constant comes from the name protoc-gen-go gives it (e.g. GetArticleResp_Comment_COMMENT_LOCKED), and the function names hold each enclosing message; enums nested inside a single message keep the same output
- The generated constructors switch the variadic args from interface{} to the new alias; the template gets parsed once at package load
- A code outside 0..600 stops the generation with a typed fault instead of a bare string, and the message states the true bounds
- Drop the unused EnumValue field
- Add TestGenerateFile, which feeds example2's descriptors to GenerateFile as buf does and checks the three options
- Example2 gains an enum two levels deep; example4 moves to a post scenario; each example gets regenerated with buf
- README: use buf (protoc commands removed), a table of the plugin options, a section on the reason design, a features list in list form
- version.go states that its v1.0.0 is a fixed value that does not follow the tags
- go.mod moves to Go 1.26 since the newest deps need it; the CI matrix runs 1.26 to 1.27; the root .gitignore matches the template and the plugin's main package ignores its build output

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

39 of 127 new or added lines in 9 files covered. (30.71%)

1 existing line in 1 file now uncovered.

230 of 713 relevant lines covered (32.26%)

1.98 hits per line

Relevant lines Covered
Build:
Build:
713 RELEVANT LINES 230 COVERED LINES
1.98 HITS PER LINE
Source Files on main
  • Tree
  • List 14
  • Changed 14
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
40171409628 refs/tags/v0.0.3 Generate working code from enums nested two levels deep, and move the docs to buf - An enum nested in a message that sits in a message now generates code that compiles: the constant comes from the name protoc-gen-go gives it (e.g. GetArticleResp_... push 25 Oct 2026 07:04AM UTC yyle88 github
32.26
40171265953 main Generate working code from enums nested two levels deep, and move the docs to buf - An enum nested in a message that sits in a message now generates code that compiles: the constant comes from the name protoc-gen-go gives it (e.g. GetArticleResp_... push 25 Oct 2026 07:03AM UTC yyle88 github
32.26
28712282944 refs/tags/v0.0.2 Switch generated code to the kratoserrors package Update the template and code to emit kratoserrors, matching kratos-errors v0.0.3. Drop the obsolete metadata example and shorten the long enum value to INVALID_PARAM. Fix the errgenkratos package ... push 04 Jul 2026 04:22PM UTC yyle88 github
28.4
28712212093 main Switch generated code to the kratoserrors package Update the template and code to emit kratoserrors, matching kratos-errors v0.0.3. Drop the obsolete metadata example and shorten the long enum value to INVALID_PARAM. Fix the errgenkratos package ... push 04 Jul 2026 04:20PM UTC yyle88 github
28.4
28312600677 refs/tags/v0.0.1 upgrade to kratos v3.0.0 with deps and template - bump go-kratos to v3.0.0 (from v2.9.2) - bump yylego/kratos-errors to v0.0.2 - update internal/codegen to emit v3 import paths - proto3ps go_package synced to v3 - regen 4 examples pb.go via local... push 28 Jun 2026 05:30AM UTC yyle88 github
28.8
28312539531 main upgrade to kratos v3.0.0 with deps and template - bump go-kratos to v3.0.0 (from v2.9.2) - bump yylego/kratos-errors to v0.0.2 - update internal/codegen to emit v3 import paths - proto3ps go_package synced to v3 - regen 4 examples pb.go via local... push 28 Jun 2026 05:28AM UTC yyle88 github
28.8
22975990249 refs/tags/v0.0.0 add kratos-errgen package Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> push 11 Mar 2026 09:46PM UTC yyle88 github
28.8
22975983833 main add kratos-errgen package Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> push 11 Mar 2026 09:46PM UTC yyle88 github
28.8
See All Builds (8)

Badge your Repo: kratos-errgen

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 TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc