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

d4l3k / messagediff / 1464
90%

Build:
DEFAULT BRANCH: master
Ran 21 Sep 2020 11:04PM CUT
Jobs 3
Files 2
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

29 Aug 2019 03:30AM CUT coverage: 90.438%. Remained the same
1464

api

travis-ci

d4l3k
record both old and new value of modified fields

This is to support alternative output formats than the
one implemented by PrettyDiff.

Most notably, with this change it would be trivial to
implement a pretty-printed with output similar to that
of the `diff` tool, which can display a modified field
as follows:

    -path: old_value
    +path: new_value

Prior to this commit, only the new value was recorded,
so producing output such as the one examplified above
would require traversing the `a` parameter passed to
DeepDiff, and such traversal would require an extensive
use of reflect, essentially re-implementing the core of
messagediff.

Therefore, to allow for broader use-cases of messagediff,
the API is adjusted to include both the old and the new
value for modified fields.

This may be considered a backwards incompatible change
to the API, in particular the type of the Modified
field of the Diff struct has been updated. Users of
PrettyPrint still have the same functionality, and
all test cases pass without any modifications, so it
may be possible to argue that this API change is more
considered an internal detail, than something facing
the average user.

In either case, the added functionalty may warrant
the update to the API.

227 of 251 relevant lines covered (90.44%)

3.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1464.1 21 Sep 2020 11:04PM CUT 0
90.44
Travis Job 1464.1
2 1464.2 21 Sep 2020 11:04PM CUT 0
90.44
Travis Job 1464.2
3 1464.3 21 Sep 2020 11:06PM CUT 0
90.44
Travis Job 1464.3
Source Files on build 1464
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
76.92
bypass.go152 65 50 15 3.0
95.16
messagediff.go299 186 177 9 3.0
Showing 1 to 2 of 2 entries
  • Previous
  • 1
  • Next
  • Back to Repo
  • Travis Build #1464
  • 7e0a312a on github
  • Prev Build on master (#1463)
  • Next Build on master (#1465)
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

© 2025 Coveralls, Inc