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

openconfig / ygot / 1389 / 4
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 05 Dec 2018 10:37PM UTC
Files 48
Run time 2495min
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

05 Dec 2018 10:28PM UTC coverage: 91.191% (-0.08%) from 91.273%
1389.4

push

travis-ci

g-yusufsn
 Add testutil options for JSON, and ignoring fields. (#257)

* Fix build failures due to incorrect package naming.

* Add testutil options for JSON, and ignoring fields.

 * (M) testutil/testutil.go
  - Add an options framework to testutil's comparisons which allows
    for specific fields to be diff'd using custom comparers, and
    for fields to be ignored.
  - Add a diff mechanism that compares IETF JSON values by unmarshalling
    the JSON into map[string]interface{} which is used by default to
    ensure that syntatic differences in valid but equal JSON do not
    cause the value to be considered invalid.
  - Add a diff mechanism that is schema aware in IETF JSON values, which
    unmarshals JSON into a schema tree root, and then diffs the
    resulting roots. This allows for comparisons between semantically
    equal but syntactically different JSON contents.
  - Add an option to ignore the timestamp field of a Notification.
 * (M) testutil/testutil_test.go
  - Add unit tests for above functionality.

* Update comparison implementation to avoid package circular loop.

We now have a testcmp package which contains comparison code that
is dependent on ygot+ytypes, and testutil is made flexible to
deal with custom comparers being supplied by the caller.

This also allowed a refactor to use ytypes.Schema rather than a
new type for specifying unmarshal filds.

* Run gofmt -w -s.

* Update .travis.yml to support current go master.

8955 of 9820 relevant lines covered (91.19%)

452.41 hits per line

Source Files on job 1389.4
  • Tree
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1274
  • Travis Job 1389.4
  • df554dd8 on github
  • Prev Job for on master (#1378.1)
  • Next Job for on master (#1392.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