-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix Marshaling of Dialogue #17
Conversation
6ac404f
to
a549da7
Compare
It seems there is an issue with your golangci-lint pipeline: https://github.com/wmnsk/go-tcap/actions/runs/8440015877/job/23120006589?pr=17#step:3:81 The golangci-lint version used does not seem to work with the golang toolchain used. You are probably hitting a bug similar to golangci/golangci-lint#4273. golangci-lint's version to be used in the pipeline should be updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Please check inline comments, and can you add a test case codec_test.go?
Thanks a lot for your comments and suggestions! |
Suggestions applied, and test case (DialoguePDU containing a dummy UserInformation) added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! will take a look at the other PR on another occation.
Marshaling of Dialogue was incorrect.
Unmarshaling was filling both SingleAsn1Type and DialoguePDU, so marshaling back was writting both which is incorrect.
Issues found with unit tests were fixed, thanks :-)
Next PR is to support marshaling of nested/recursive IEs!