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

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

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2018 05:26PM UTC
Files 46
Run time 4s
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

25 Sep 2018 05:20PM UTC coverage: 91.101% (+0.04%) from 91.066%
1275.1

push

travis-ci

web-flow
Add support for leaf getters. (#235)

* Add support for leaf getters.

 * (M) ygen/*
   - Add support for leaf getters which enable the value of a leaf to be retrieved
     using Get<LeafName> methods. These getters return the Go zero value if a leaf
     is unset in the schema. Some caution must therefore be exercised such that
     applications that use them do not assume that a leaf is set simply because
     GetXXX returns a value.
   - A subsequent change will implement YANG default lookups such that GetXXX
     returns the YANG default for unset leaves.
 * (M) ygen/testdata/*
   - Mechanical change to make the receiver name for a generated Go struct
     consistent per style rules. We had a mix of s and t prior to this change.
 * (M) ygen/schema_tests/schema_test.go
   - Add tests against the generated code to ensure operation of leaf getters.
 * (M) generator/generator.go
   - Add support for the -generate_leaf_getters flag.
 * (M) exampleoc/*
   - Regenerate with leaf getters enabled.

* Update schema tests that relied on removed schema elements.

* Run gofmt.

* Address review comments.

8579 of 9417 relevant lines covered (91.1%)

456.34 hits per line

Source Files on job 1275.1
  • Tree
  • List 0
  • Changed 12
  • Source Changed 3
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1190
  • Travis Job 1275.1
  • 380237b5 on github
  • Prev Job for on master (#1266.1)
  • Next Job for on master (#1278.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