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

openconfig / ygot / 963 / 1
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 12 Feb 2018 03:20PM UTC
Files 41
Run time 2s
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

12 Feb 2018 03:18PM UTC coverage: 90.814% (+0.04%) from 90.776%
963.1

push

travis-ci

web-flow
Fix PruneEmptyBranches. (#162)

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.

7523 of 8284 relevant lines covered (90.81%)

87.96 hits per line

Source Files on job 963.1
  • Tree
  • List 0
  • Changed 11
  • Source Changed 1
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 963
  • Travis Job 963.1
  • 0b77e2f7 on github
  • Prev Job for on master (#948.2)
  • Next Job for on master (#972.2)
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