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

openconfig / ygot / 947
91%
master: 89%

Build:
Build:
LAST BUILD BRANCH: renovate/deps
DEFAULT BRANCH: master
Ran 09 Feb 2018 10:48PM UTC
Jobs 2
Files 41
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

pending completion
947

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.

47 of 47 new or added lines in 1 file covered. (100.0%)

7496 of 8257 relevant lines covered (90.78%)

175.59 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
ygot/struct_validation_map.go
Jobs
ID Job ID Ran Files Coverage
1 947.1 09 Feb 2018 10:48PM UTC 0
90.78
Travis Job 947.1
2 947.2 09 Feb 2018 10:50PM UTC 0
90.78
Travis Job 947.2
Source Files on build 947
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #947
  • 22f709e6 on github
  • Next Build on fix_prunebranches (#949)
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