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

99designs / gqlgen / 24863653640 / 1
0%
master: 0%

Build:
DEFAULT BRANCH: master
Ran 23 Apr 2026 11:19PM UTC
Files 0
Run time 0s
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

23 Apr 2026 11:16PM UTC coverage: 0.0%. Remained the same
24863653640.1

push

github

web-flow
feat: deduplicate Child field context switches and scalar fieldContex… (#4086)

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

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

Two optimizations:

1. Shared childFields_* functions: Extract the Child switch into a shared
   function generated once per return type, 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.

Tested on a production schema with 325 entities (~22,000 fieldContext
functions):
- Before: 2,308,013 lines
- After:  1,778,987 lines (-529,026 lines, -22.9%)

Closes #4085

* refactor: move NewScalarFieldContext to graphql package, add tests, regenerate

- Move newLeafFieldContext from .gotpl templates into graphql.NewScalarFieldContext()
  to reduce template logic and improve testability
- Add unit tests for NewScalarFieldContext, UniqueChildFieldTypes, ChildFieldContextTypeName
- Add integration tests and go:generate directive for childfielddedup testserver
- Regenerate all files after merge from master (fixes check-generate CI failure)

Signed-off-by: Steve Coffman <steve@khanacademy.org>

---------

Signed-off-by: Steve Coffman <steve@khanacademy.org>

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Source Files on job 24863653640.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24863653640
  • 3ab44606 on github
  • Prev Job for on master (#24857278167.1)
  • Next Job for on master (#24907847407.1)
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