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

openconfig / ygot / 40429042492
88%
master: 89%

Build:
Build:
LAST BUILD BRANCH: robjs-optimise-orderedmap-walk
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:31AM UTC coverage: 88.464% (-0.3%) from 88.775%
40429042492

Pull #1118

github

robshakir
ytypes, util: guard debug string formatting when logging is disabled

`util` and `ytypes` previously evaluated `pretty.Sprint` and `Schema.Path`
arguments before calling `util.DbgPrint` and `util.DbgSchema`, even with
debug logging disabled. In `unmarshalKeyedList`, this formatted the growing
map on every entry and caused `O(n^2)` heap allocations.

Changes:
- Add `IsDebugLibraryEnabled` and `IsDebugSchemaEnabled` helpers in
  `util/debug.go`.
- Check `debugLibrary` in `util.DbgErr` before concatenating error strings.
- Guard `DbgPrint` and `DbgSchema` calls that allocate arguments in
  `util/reflect.go` and
  `ytypes/{container,int_type,leaf,leafref,list,util_schema}.go`.
- Add unit and `5%` allocation regression tests (`TestDebugEnabledHelpers`,
  `TestDbgErr`, and `TestUnmarshalKeyedListPerformance`) in
  `util/debug_test.go` and `ytypes/unmarshal_test.go`.
Pull Request #1118: ytypes, util: guard debug string formatting when logging is disabled

31 of 78 new or added lines in 8 files covered. (39.74%)

6 existing lines in 1 file now uncovered.

14126 of 15968 relevant lines covered (88.46%)

1591.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
82.49
-2.81% util/reflect.go
7
85.23
-1.23% ytypes/leaf.go
7
85.75
-1.96% ytypes/leafref.go
6
86.59
-3.18% ytypes/container.go
6
88.97
-1.32% ytypes/list.go
4
91.41
-3.04% ytypes/int_type.go
4
90.67
-1.68% ytypes/util_schema.go

Coverage Regressions

Lines Coverage ∆ File
6
82.49
-2.81% util/reflect.go
Jobs
ID Job ID Ran Files Coverage
1 40429042492.1 27 Oct 2026 12:54AM UTC 85
88.46
GitHub Action Run
Source Files on build 40429042492
  • Tree
  • List 85
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1118
  • 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