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

go-pkgz / enum
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.7.2
DEFAULT BRANCH: master
Repo Added 16 Feb 2025 09:48AM UTC
Files 3
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.7.2
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • add-go1.23-iterator
  • chore/modernize-any
  • ci/lint-version
  • ci/workflow-hardening
  • deps/update-latest
  • feat/bson-sql-yaml-support
  • feature/alias-support
  • fix-missing-import-wo-lower-flag
  • fix/const-expr-eval
  • fix/minmax-untyped-float
  • get-enum-value-by-the-int-value
  • major-refactor-and-enhancements
  • master
  • preserve-original-value-type
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.1.2
  • refs/tags/v0.1.3
  • refs/tags/v0.2.0
  • refs/tags/v0.3.0
  • refs/tags/v0.3.1
  • refs/tags/v0.4.0
  • refs/tags/v0.5.0
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.7.1
  • refs/tags/v0.7.2
  • split-template-from-code
  • sql
  • support-for-complex-type-names

19 Aug 2026 07:25AM UTC coverage: 100.0%. Remained the same
32228786730

push

github

web-flow
Use any in generated code, apply go fix (#23)

* Apply go fix, regenerate the committed files

go fix rewrites a HasPrefix and TrimPrefix pair into strings.CutPrefix, and the
interface{} parameter of a test helper into any. The generated Scan keeps
interface{}: the enum type has to be lowercase, so a package generating for
type any shadows the alias and the generated assertions stop compiling.

The committed generated files are regenerated. That brings the examples up to
date with the case-insensitive parsing added to the template earlier, and
leaves the integration test data byte for byte what the generator produces, so
running the tests no longer leaves a modified file behind.

One test asserted that the generated code contains "value int", which only
ever matched the interface{} in Scan. The enum in that test is uint8 based, so
the assertion now names the field type it has.

* Limit the permissions of the workflow token on the job

The workflow already granted contents: read at the top level, the job did not
say anything of its own. Code scanning reports a job that does not limit the
token, so the job states the same permission explicitly.

1 of 1 new or added line in 1 file covered. (100.0%)

784 of 784 relevant lines covered (100.0%)

396.19 hits per line

Relevant lines Covered
Build:
Build:
784 RELEVANT LINES 784 COVERED LINES
396.19 HITS PER LINE
Source Files on master
  • Tree
  • List 3
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32228786730 refs/tags/v0.7.2 Use any in generated code, apply go fix (#23) * Apply go fix, regenerate the committed files go fix rewrites a HasPrefix and TrimPrefix pair into strings.CutPrefix, and the interface{} parameter of a test helper into any. The generated Scan keep... push 19 Aug 2026 07:39AM UTC web-flow github
100.0
32227780767 master Use any in generated code, apply go fix (#23) * Apply go fix, regenerate the committed files go fix rewrites a HasPrefix and TrimPrefix pair into strings.CutPrefix, and the interface{} parameter of a test helper into any. The generated Scan keep... push 19 Aug 2026 07:26AM UTC web-flow github
100.0
32225850659 chore/modernize-any Limit the permissions of the workflow token on the job The workflow already granted contents: read at the top level, the job did not say anything of its own. Code scanning reports a job that does not limit the token, so the job states the same pe... Pull #23 19 Aug 2026 07:01AM UTC paskal github
100.0
32225789401 chore/modernize-any Apply go fix, regenerate the committed files go fix rewrites a HasPrefix and TrimPrefix pair into strings.CutPrefix, and the interface{} parameter of a test helper into any. The generated Scan keeps interface{}: the enum type has to be lowercase,... Pull #23 19 Aug 2026 07:00AM UTC paskal github
100.0
32220057890 chore/modernize-any Use any in generated code, apply go fix The Scan method of the generated type took an interface{} parameter, the rest of the template already used any. go fix takes care of the same replacement in the test helper and rewrites a TrimPrefix pair in... Pull #23 19 Aug 2026 05:37AM UTC paskal github
100.0
32208383035 refs/tags/v0.7.1 Give min and max the kind of their untyped arguments, cover the evaluator (#25) max(5, 4.0) has an untyped float type even though the integer wins, so max(5, 4.0) / 2 * 10 is 25 and not 20. A right shift count is bounded by a constant instead of ... push 19 Aug 2026 02:24AM UTC web-flow github
100.0
32207556607 master Give min and max the kind of their untyped arguments, cover the evaluator (#25) max(5, 4.0) has an untyped float type even though the integer wins, so max(5, 4.0) / 2 * 10 is 25 and not 20. A right shift count is bounded by a constant instead of ... push 19 Aug 2026 02:11AM UTC web-flow github
100.0
32207409228 fix/minmax-untyped-float Give min and max the kind of their untyped arguments, cover the evaluator max(5, 4.0) has an untyped float type even though the integer wins, so max(5, 4.0) / 2 * 10 is 25 and not 20. A right shift count is bounded by a constant instead of the wi... Pull #25 19 Aug 2026 02:08AM UTC paskal github
100.0
32207412363 fix/minmax-untyped-float Give min and max the kind of their untyped arguments, cover the evaluator max(5, 4.0) has an untyped float type even though the integer wins, so max(5, 4.0) / 2 * 10 is 25 and not 20. A right shift count is bounded by a constant instead of the wi... Pull #25 19 Aug 2026 02:08AM UTC paskal github
100.0
32207139173 chore/modernize-any Cover an alias directive that holds only separators Rewriting the prefix check as strings.CutPrefix dropped a covered statement, which moved the coverage of the package down by a hair. The branch that returns no aliases at all had no test of its ... Pull #23 19 Aug 2026 02:04AM UTC paskal github
92.34
See All Builds (96)
  • 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