Skip to content

Conversation

@adrian-kong
Copy link
Contributor

Description

Adds fn test_sbp2json_* test for JsonEncoder (used in sbp2json) for serializing SBP messages into json strings.
Tests for sbp::json::CompactFormatter
This test also assumes the original fn test_* passes, which does not use json feature.

As per last pull request: #1196
We added some more tests for json2sbp which tests deserializing of raw json (using methods used in sbp2json) and checks the sbp fields.

Basically TLDR:
fn test_json2sbp - tests from-fields is identical to sbp created via payload && contains all the fields
fn test_sbp2json - tests sbp constructed from payload serialized into json is identical (basically roundtrip, json2sbp from-fields)

JIRA Reference

https://swift-nav.atlassian.net/browse/DEVINFRA-821

@adrian-kong adrian-kong requested review from a team, notoriaga and silverjam as code owners July 26, 2022 02:56
Copy link
Contributor

@silverjam silverjam left a comment

Choose a reason for hiding this comment

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

Lgtm

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.

4 participants