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

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

Build:
DEFAULT BRANCH: master
Ran 27 Sep 2018 05:59PM 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

27 Sep 2018 05:54PM UTC coverage: 91.124% (+0.02%) from 91.101%
1293.1

push

travis-ci

web-flow
Add support for defaults in leaf getters. (#237)

* 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.

* Add support for default values in leaf getters.

 * (M) ygen/*
  - Add support for GetXXX methods to return a default value if one
    is specified in the YANG schema.

* Fix quoting string defaults.

* Add handling for prefixes in enumeration values.

* Fix merge error for schema_test.go

* Fix review comments.

8624 of 9464 relevant lines covered (91.12%)

456.73 hits per line

Source Files on job 1293.1
  • Tree
  • List 0
  • Changed 16
  • Source Changed 5
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1205
  • Travis Job 1293.1
  • 40abe351 on github
  • Prev Job for on master (#1288.1)
  • Next Job for on master (#1296.3)
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