Skip to content

Use pretty.Compare to test equality in tests instead of reflect.DeepEqual#24

Open
icyflame wants to merge 1 commit intomercari:mainfrom
icyflame:use-pretty-for-deepequal
Open

Use pretty.Compare to test equality in tests instead of reflect.DeepEqual#24
icyflame wants to merge 1 commit intomercari:mainfrom
icyflame:use-pretty-for-deepequal

Conversation

@icyflame
Copy link

@icyflame icyflame commented Apr 5, 2019

Using reflect.DeepEqual dumps the got and expected in a single line and makes it hard to see the actual difference. Whereas, using pretty.Compare shows a concise easy to read diff of actual vs. expected.

@codecov-io
Copy link

Codecov Report

Merging #24 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   97.28%   97.28%           
=======================================
  Files           3        3           
  Lines         221      221           
=======================================
  Hits          215      215           
  Misses          4        4           
  Partials        2        2
Impacted Files Coverage Δ
validate.go 97.46% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db7b11e...aeecf33. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants