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

yylego / kratos-errgen / 40171265953
32%

Build:
DEFAULT BRANCH: main
Ran 25 Oct 2026 07:03AM UTC
Jobs 3
Files 14
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

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

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

Uncovered Changes

Lines Coverage ∆ File
54
26.9
-6.1% internal/examples/example2/errors.pb.go
17
0.0
0.0% internal/codegen/code_gen.go
10
28.42
4.31% internal/examples/example4/errors.pb.go
4
54.55
11.69% internal/examples/example2/errors_errors.pb.go
2
0.0
0.0% internal/codegen/template.go
1
91.3
3.8% internal/examples/example4/errors_errors.pb.go

Coverage Regressions

Lines Coverage ∆ File
1
91.3
3.8% internal/examples/example4/errors_errors.pb.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.27.x - 40171265953.1 25 Oct 2026 07:03AM UTC 14
27.59
GitHub Action Run
2 Go-1.26.x - 40171265953.2 25 Oct 2026 07:03AM UTC 14
27.35
GitHub Action Run
3 Go-stable - 40171265953.3 25 Oct 2026 07:03AM UTC 14
27.59
GitHub Action Run
Source Files on build 40171265953
  • Tree
  • List 14
  • Changed 14
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d9d60fa4 on github
  • Prev Build on main (#28712212093)
  • Delete
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