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

chore: add side-by-side tests with official proto.Marshal and Unmarshal #3

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

DmitriyMV
Copy link
Member

@DmitriyMV DmitriyMV commented Jul 26, 2022

This tests ensures that our encoding is compatible with official proto modules.

Closes #2

Signed-off-by: Dmitriy Matrenichev dmitry.matrenichev@siderolabs.com

@DmitriyMV DmitriyMV marked this pull request as ready for review July 26, 2022 14:00
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
messages/messages_test.go Outdated Show resolved Hide resolved
@DmitriyMV DmitriyMV force-pushed the side-by-side branch 4 times, most recently from a4f1b51 to 4c842c8 Compare July 26, 2022 17:33
This test ensures that our encoding is compatible with official proto modules. It doesn't verify that binary form is equivalent because we do encode zero values, unlike official encoder.

Also add simple fuzzing.

Closes #2

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
@DmitriyMV
Copy link
Member Author

/m

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.

let's add side-by-side with "official" protobuf marshaling
4 participants