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

openconfig / ygot / 1389
89%

Build:
DEFAULT BRANCH: master
Ran 05 Dec 2018 10:33PM UTC
Jobs 4
Files 48
Run time 3115min
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.202% (-0.07%) from 91.273%
1389

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.

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

8956 of 9820 relevant lines covered (91.2%)

1809.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1389.1 05 Dec 2018 10:34PM UTC 0
91.19
Travis Job 1389.1
2 1389.2 05 Dec 2018 10:33PM UTC 0
91.19
Travis Job 1389.2
3 1389.3 05 Dec 2018 10:33PM UTC 0
91.2
Travis Job 1389.3
4 1389.4 05 Dec 2018 10:37PM UTC 0
91.19
Travis Job 1389.4
Source Files on build 1389
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1389
  • df554dd8 on github
  • Prev Build on master (#1378)
  • Next Build on master (#1392)
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