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

Fix Marshaling of Dialogue #17

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Fix Marshaling of Dialogue #17

merged 1 commit into from
Apr 4, 2024

Conversation

linouxis9
Copy link
Contributor

@linouxis9 linouxis9 commented Mar 25, 2024

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!

@linouxis9
Copy link
Contributor Author

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.

Copy link
Owner

@wmnsk wmnsk left a 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?

dialogue.go Outdated Show resolved Hide resolved
dialogue.go Outdated Show resolved Hide resolved
dialogue.go Outdated Show resolved Hide resolved
@linouxis9
Copy link
Contributor Author

Thanks a lot for your comments and suggestions!
I'll add a test case and apply your suggestions.

@linouxis9
Copy link
Contributor Author

Suggestions applied, and test case (DialoguePDU containing a dummy UserInformation) added.
Thanks!

Copy link
Owner

@wmnsk wmnsk left a 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.

@wmnsk wmnsk merged commit 9a88ae4 into wmnsk:master Apr 4, 2024
3 checks passed
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.

None yet

2 participants