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

99designs / gqlgen / 23327397343
0%
master: 0%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/github.com/mattn/go-colorable-0.1.15
DEFAULT BRANCH: master
Ran 20 Mar 2026 11:11AM UTC
Jobs 1
Files 0
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

20 Mar 2026 03:05AM UTC coverage: 0.0%. Remained the same
23327397343

Pull #4086

github

syssam
feat: deduplicate Child field context switches and scalar fieldContext boilerplate

Reduces generated code by ~23% on large schemas with zero runtime performance impact.

Three optimizations:

1. Shared childFields_* functions: Extract the Child switch into a shared
   function generated once per return type in root_.generated.go, instead
   of inlining the same switch in every fieldContext_* function.

2. newLeafFieldContext helper: Replace 11-line boilerplate for scalar field
   context functions with a 3-line helper call.

3. Move root resolver interfaces (QueryResolver, MutationResolver,
   SubscriptionResolver) to root_.generated.go in follow-schema layout,
   instead of placing them in arbitrary per-schema files.

Tested on a production schema with 325 entities (~22,000 fieldContext functions):
- Total generated lines: 2,308,013 → 1,778,987 (-529,026 lines, -22.9%)
- All existing tests pass (followschema, singlefile, usefunctionsyntaxforexecutioncontext)
Pull Request #4086: feat: deduplicate Child field context switches and scalar fieldContex…

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23327397343.1 20 Mar 2026 11:10AM UTC 0
0.0
GitHub Action Run
Source Files on build 23327397343
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #4086
  • PR Base - master (#23191672097)
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