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

openconfig / ygot / 1293
89%

Build:
DEFAULT BRANCH: master
Ran 27 Sep 2018 05:59PM UTC
Jobs 4
Files 46
Run time 2min
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.135% (+0.03%) from 91.101%
1293

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.

62 of 62 new or added lines in 3 files covered. (100.0%)

8625 of 9464 relevant lines covered (91.13%)

1826.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1293.1 27 Sep 2018 05:59PM UTC 0
91.12
Travis Job 1293.1
2 1293.2 27 Sep 2018 05:59PM UTC 0
91.13
Travis Job 1293.2
3 1293.3 27 Sep 2018 05:59PM UTC 0
91.12
Travis Job 1293.3
4 1293.4 27 Sep 2018 06:01PM UTC 0
91.12
Travis Job 1293.4
Source Files on build 1293
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1293
  • 40abe351 on github
  • Prev Build on master (#1288)
  • Next Build on master (#1296)
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