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

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

Build:
DEFAULT BRANCH: master
Ran 01 Oct 2019 12:40AM UTC
Files 53
Run time 3s
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

01 Oct 2019 12:32AM UTC coverage: 90.813% (-0.2%) from 90.967%
1562.1

push

travis-ci

web-flow
Add PathStruct definition and child ctor generating code for ypathgen (#315)

* Add PathStruct definition and child constructor generating code for ypathgen.

This is the first step to a generating library (ypathgen) alongside ygen
which generates an API for creating YANG paths given a set of YANG
schema files. While ygen creates a set of structs for storing the data
of a YANG tree, ypathgen creates a set of structs for generating paths
denoting nodes in a YANG tree. This avoids any manual construction of
paths.

Envisioned API example:
oc.Interface("eth0").Counters().InOctets()

Each selector constructs and returns a child struct that keeps track of
the absolute path it represents.

This change includes the generation of these child constructors.

List of primary changes:
- ygot/path_types.go defines the base struct and interface to be
implemented by every path struct node.
- KeyValueAsString() is enhanced to allow ygen.Binary to be converted to
a string for use by gNMI as a list key value.
- A GetDirectories() call is added to ygen for retrieving a parsed map of
Directory elements for use by the ypathgen generation library. The
output of this function is very similar to part of what ygen uses for
its generation.
- The configuration struct for ygen code generation is reorganized.
- pathgen.go contains the child path struct constructor generation code.

* gofmt gogen_test.go

9065 of 9982 relevant lines covered (90.81%)

283.6 hits per line

Source Files on job 1562.1
  • Tree
  • List 0
  • Changed 16
  • Source Changed 7
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1418
  • Travis Job 1562.1
  • 338f4a65 on github
  • Prev Job for on master (#1557.1)
  • Next Job for on master (#1567.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