Skip to content

Pretty print test compression map differences #853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 1, 2018

Conversation

tmthrgd
Copy link
Collaborator

@tmthrgd tmthrgd commented Dec 1, 2018

As I'm working on the compression code and I trip either of these tests I keep being hit with a massive wall of incomprehensible text that tells me nothing about what's gone wrong. These maps end up with nearly a thousand different entries.

This PR adds a helper function that formats the maps in a much nicer way and greatly simplifies debugging test failures.

This isn't strictly needed as it only contains a small number of
entries, but is consistent nonetheless.
@tmthrgd tmthrgd requested a review from miekg December 1, 2018 00:32
@codecov-io
Copy link

codecov-io commented Dec 1, 2018

Codecov Report

Merging #853 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #853      +/-   ##
=========================================
+ Coverage   57.96%     58%   +0.03%     
=========================================
  Files          42      42              
  Lines       10675   10675              
=========================================
+ Hits         6188    6192       +4     
+ Misses       3398    3395       -3     
+ Partials     1089    1088       -1
Impacted Files Coverage Δ
msg.go 78.66% <0%> (+0.68%) ⬆️

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 6b6e08b...8e69d4c. Read the comment docs.

@tmthrgd tmthrgd changed the title Compression map test fmt Pretty print test compression map differences Dec 1, 2018
@tmthrgd
Copy link
Collaborator Author

tmthrgd commented Dec 1, 2018

/cc @pierresouchay (who wrote these test cases in #668).

@miekg miekg merged commit 5c9c0e7 into miekg:master Dec 1, 2018
@tmthrgd tmthrgd deleted the compression-map-test-fmt branch December 1, 2018 08:47
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.

3 participants