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

openconfig / ygot / 963
89%

Build:
DEFAULT BRANCH: master
Ran 12 Feb 2018 03:20PM 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
963

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%)

175.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 963.1 12 Feb 2018 03:20PM UTC 0
90.81
Travis Job 963.1
2 963.2 12 Feb 2018 03:22PM UTC 0
90.81
Travis Job 963.2
Source Files on build 963
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #963
  • 0b77e2f7 on github
  • Prev Build on master (#948)
  • Next Build on master (#972)
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