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

openconfig / ygot / 40786854168
89%
master: 89%

Build:
Build:
LAST BUILD BRANCH: robjs-optimise-orderedmap-walk
DEFAULT BRANCH: master
Ran 28 Oct 2026 11:24PM 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

28 Oct 2026 11:21PM UTC coverage: 88.667% (-0.1%) from 88.775%
40786854168

Pull #1124

github

robshakir
yreflect, util, gogen: optimise RangeOrderedMap and Walk node traversal

- Cache GoOrderedMap reflection method indices and key/value types per
  reflect.Type in internal/yreflect.
- Update RangeOrderedMap to short-circuit on empty maps and iterate over
  batch Keys() and Values() slices rather than invoking Get(k) via
  reflection for every element.
- Pre-allocate Values() slice capacity in gogen ordered map templates and
  return nil on empty maps.
- Make *util.NodeInfo implement util.WalkNode directly so
  WalkNodeFromNodeInfo returns ni without allocating a walkNodeInfo
  wrapper struct on every visited node.
- Reuse a shared leafMemo and avoid boxing child visitors on scalar leaf
  nodes in forEachFieldMemoVisitor.
Pull Request #1124: yreflect, util, gogen: optimise RangeOrderedMap and Walk node traversal

117 of 161 new or added lines in 4 files covered. (72.67%)

17 existing lines in 1 file now uncovered.

14247 of 16068 relevant lines covered (88.67%)

1529.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
33
62.37
-6.87% internal/yreflect/reflect_orderedmap.go
11
87.16
1.85% util/reflect.go

Coverage Regressions

Lines Coverage ∆ File
17
62.37
-6.87% internal/yreflect/reflect_orderedmap.go
Jobs
ID Job ID Ran Files Coverage
1 40786854168.1 28 Oct 2026 11:24PM UTC 85
88.67
GitHub Action Run
Source Files on build 40786854168
  • Tree
  • List 85
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1124
  • 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