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

openconfig / ygot / 40614368455
88%
master: 89%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/shogo82148/actions-goveralls-1.11.5
DEFAULT BRANCH: master
Ran 28 Oct 2026 01:22AM UTC
Jobs 1
Files 86
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

28 Oct 2026 01:18AM UTC coverage: 88.395% (-0.4%) from 88.775%
40614368455

Pull #1119

github

robshakir
ytypes, util: cache struct schema metadata and index container lookups

`retrieveNodeContainer` previously scanned all struct fields, parsed struct
tags, and called `util.ChildSchema` on every container hop. `util.ChildSchema`
also lacked an upfront `ygotAnnotation` guard and walked choice and case schema
trees for every annotation field.

Changes:
- Return `nil` immediately for `util.IsYgotAnnotation` fields in
  `util.ChildSchema`, `util.ChildSchemaPreferShadow`, and `util.childSchema`.
- Add `StructDesc` and `StructSchemaDesc` `sync.Map` caches in
  `util/schema_cache.go` for struct tags, path indices, and child schemas.
- Replace linear container scans in `ytypes/node.go` and `util/reflect.go` with
  two-segment `CandidateCursor` lookups and first-error bounds.
- Add zero-copy internal path helpers in `util` and `ytypes`, and return fresh
  slice copies from exported `util` path helpers.
- Add unit tests, wide-container benchmarks, and `5%` allocation regression
  tests in `util` and `ytypes`.
Pull Request #1119: ytypes, util: cache struct schema metadata and index container lookups

705 of 846 new or added lines in 8 files covered. (83.33%)

31 existing lines in 4 files now uncovered.

14564 of 16476 relevant lines covered (88.4%)

1530.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
76
82.08
util/schema_cache.go
27
81.04
-4.26% util/reflect.go
23
86.52
-0.23% ytypes/node.go
13
82.72
-9.63% ytypes/util_schema.go
1
97.62
-2.38% ytypes/choice.go
1
89.47
-0.3% ytypes/container.go

Coverage Regressions

Lines Coverage ∆ File
15
81.04
-4.26% util/reflect.go
14
82.72
-9.63% ytypes/util_schema.go
1
89.47
-0.3% ytypes/container.go
1
86.52
-0.23% ytypes/node.go
Jobs
ID Job ID Ran Files Coverage
1 40614368455.1 28 Oct 2026 01:22AM UTC 86
88.4
GitHub Action Run
Source Files on build 40614368455
  • Tree
  • List 86
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1119
  • PR Base - master (#40608054653)
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