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

openconfig / ygot / 40429050011
89%
master: 89%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/shogo82148/actions-goveralls-1.11.5
DEFAULT BRANCH: master
Ran 27 Oct 2026 12:54AM UTC
Jobs 1
Files 85
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

27 Oct 2026 12:39AM UTC coverage: 88.68% (-0.1%) from 88.775%
40429050011

Pull #1115

github

robshakir
ygot: remove repeated JSON normalisation in RFC7951 rendering

`structJSON` previously called `normalizeJSONValue` -- which runs
`json.Marshal` and `json.Unmarshal` -- on every container and list. That
round-trip serialised and parsed every leaf value once per ancestor
container rather than once per tree.

Changes:
- Remove `normalizeJSONValue` calls from `structJSON` and `jsonValue` in
  `ygot/render.go`.
- Update `writeIETFScalarJSON` to return the Go primitive types (`string`,
  `float64`, `bool`) that `encoding/json.Unmarshal` decodes into `any`.
- Skip `nil` map, slice, pointer, and interface fields at the start of
  `structJSON` before parsing struct tags.
- Pre-size output slices in `leaflistToSlice`, `mapValuePairsToJSON`,
  `mapJSON`, `jsonSlice`, and `jsonAnnotationSlice`.
- Add type-parity and `5%` allocation regression tests
  (`TestConstructIETFJSONTypeParity` and `TestRFC7951JSONPerformance`) in
  `ygot/render_test.go`.
Pull Request #1115: ygot: remove repeated JSON normalisation in RFC7951 rendering

60 of 77 new or added lines in 1 file covered. (77.92%)

6 existing lines in 1 file now uncovered.

14180 of 15990 relevant lines covered (88.68%)

1617.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
88.63
-1.23% ygot/render.go

Coverage Regressions

Lines Coverage ∆ File
6
88.63
-1.23% ygot/render.go
Jobs
ID Job ID Ran Files Coverage
1 40429050011.1 27 Oct 2026 12:54AM UTC 85
88.68
GitHub Action Run
Source Files on build 40429050011
  • Tree
  • List 85
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1115
  • PR Base - master (#40419440996)
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