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

openconfig / ygot / 947 / 2
91%
master: 89%

Build:
Build:
LAST BUILD BRANCH: renovate/deps
DEFAULT BRANCH: master
Ran 09 Feb 2018 10:50PM UTC
Files 41
Run time 1s
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

09 Feb 2018 10:42PM UTC coverage: 90.784%. First build
947.2

push

travis-ci

robshakir
Fix PruneEmptyBranches.

When ygot.BuildEmptyTree is run on a struct, then the struct fields that are
struct pointers are recursively initialised. ygot.PruneEmptyBranches checked
whether a struct was non-nil, and removed it if not. However, this only worked
where the struct had only non-struct ptr children, since BuildEmptyTree had
already initialised struct ptr fields. The test cases that were used for
PruneEmptyBranches did not reflect this completely.

Additionally, PruneEmptyBranches did not iterate through maps and recursively
remove branches lower down in the tree. This made it less effective at removing
initialised structs that are empty than it should have been.

This CL fixes PruneEmptyBranches, adds better testing, and tests against the
exampleoc schema.

7496 of 8257 relevant lines covered (90.78%)

87.78 hits per line

Source Files on job 947.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 947
  • Travis Job 947.2
  • 22f709e6 on github
  • Next Job for on fix_prunebranches (#949.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