Skip to content
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

Add NULL record #840

Merged
merged 1 commit into from
Dec 30, 2018
Merged

Add NULL record #840

merged 1 commit into from
Dec 30, 2018

Conversation

miekg
Copy link
Owner

@miekg miekg commented Nov 28, 2018

Sorely missing from this library. Add it.

@codecov-io
Copy link

codecov-io commented Nov 28, 2018

Codecov Report

Merging #840 into master will decrease coverage by 0.04%.
The diff coverage is 47.82%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #840      +/-   ##
=========================================
- Coverage   57.25%   57.2%   -0.05%     
=========================================
  Files          41      41              
  Lines       10534   10583      +49     
=========================================
+ Hits         6031    6054      +23     
- Misses       3422    3441      +19     
- Partials     1081    1088       +7
Impacted Files Coverage Δ
types.go 73.66% <0%> (-0.34%) ⬇️
zduplicate.go 4.31% <0%> (-0.05%) ⬇️
ztypes.go 45.22% <25%> (-0.26%) ⬇️
msg_helpers.go 57% <60%> (+0.07%) ⬆️
zmsg.go 48.05% <70%> (+0.18%) ⬆️
acceptfunc.go 40% <0%> (-1.18%) ⬇️

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 5f5f238...8d8e57e. Read the comment docs.

@miekg miekg mentioned this pull request Nov 28, 2018
@tmthrgd
Copy link
Collaborator

tmthrgd commented Nov 28, 2018

@miekg Can this wait until #833? That changes the signature of len and it would be much easier to rebase this PR rather than #833.

@miekg
Copy link
Owner Author

miekg commented Nov 28, 2018 via email

@miekg miekg changed the title WIP: Add NULL record Add NULL record Nov 29, 2018
@miekg miekg force-pushed the null branch 2 times, most recently from 0df5fca to 5425b6d Compare December 1, 2018 10:12
@miekg
Copy link
Owner Author

miekg commented Dec 1, 2018

rebased and regenerated. Only needs a little test. Hard to validate if the implementation is interopereable because there is no presentation format.

@tmthrgd
Copy link
Collaborator

tmthrgd commented Dec 1, 2018

go install + go generate. You're not picking up the changes from #847.

@tmthrgd
Copy link
Collaborator

tmthrgd commented Dec 1, 2018

Could you add a test against a fixed record data that was generated by something else?

@miekg
Copy link
Owner Author

miekg commented Dec 1, 2018 via email

@tmthrgd
Copy link
Collaborator

tmthrgd commented Dec 1, 2018

If they’re used by tunneling implementations, maybe one of those could be used to generate the record? It’s not obvious without a presentation format.

@tmthrgd
Copy link
Collaborator

tmthrgd commented Dec 1, 2018

At the very least, you could add a regression test by using this implementation to generate the record to make sure it doesn’t accidentally change.

@miekg miekg force-pushed the null branch 2 times, most recently from b392f2b to 072a1a3 Compare December 1, 2018 15:36
`t.example.com. IN TXT aaa ;`: "t.example.com.\t3600\tIN\tTXT\t\"aaa\"",
`t.example.com. IN TXT aaa aaa;`: "t.example.com.\t3600\tIN\tTXT\t\"aaa\" \"aaa\"",
`t.example.com. IN TXT aaa aaa`: "t.example.com.\t3600\tIN\tTXT\t\"aaa\" \"aaa\"",
`t.example.com. IN TXT aaa`: "t.example.com.\t3600\tIN\tTXT\t\"aaa\"",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miekg I think you need to update gofmt, see https://golang.org/doc/go1.11#gofmt. The original formatting of these lines was correct as of go1.11.

@miekg
Copy link
Owner Author

miekg commented Dec 1, 2018 via email

@miekg
Copy link
Owner Author

miekg commented Dec 4, 2018

ok, conflict resolved and rebased (manually edited zmsg.go, because it can't 'go install' the right version of the go library to make go generate work). PTAL

@miekg
Copy link
Owner Author

miekg commented Dec 18, 2018

@tmthrgd I think this is good to go

Copy link
Collaborator

@tmthrgd tmthrgd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from that one nit, this LGTM.

Sorely missing from this library. Add it. As there is no presentation
format the String method for this type puts a comment in front of it.

Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg miekg merged commit 56516cf into master Dec 30, 2018
@miekg miekg deleted the null branch December 30, 2018 09:45
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