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

openconfig / ygot / 1657 / 3
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 20 Dec 2019 01:25AM UTC
Files 54
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

20 Dec 2019 01:20AM UTC coverage: 90.494% (+0.03%) from 90.464%
1657.3

push

travis-ci

web-flow
Split genState into smaller generators. (#338)

* Split genState into smaller generators.

Currently, genState contains all the internal state variables and
generation functions for both Go and proto, making the code more
confusing than necessary and changes to the code seemingly more
precarious due to the lack of clear separation between Go and proto
generation. This is a problem for both the reader of the code as well as
maintainers.

To help with this, genState is split into protoGenState, goGenState,
enumGenState, and schemaTree. schemaTree embeds ctree.Tree,
allowing resolveLeafrefTarget to be attached to it, acting as a helper for
generation, and enumGenState contains functionality and internal state
used for generating enum names. These two are language independent.
protoGenState and goGenState then contains the language-specific
generation functionalities.

The generation methods are partitioned either into one of these new
smaller generators, or became independent of generation state and lost
their receivers, making each of the generators easier to understand.

9491 of 10488 relevant lines covered (90.49%)

280.97 hits per line

Source Files on job 1657.3
  • Tree
  • List 0
  • Changed 16
  • Source Changed 7
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1500
  • Travis Job 1657.3
  • b7a00368 on github
  • Prev Job for on master (#1650.1)
  • Next Job for on master (#1662.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