Skip to content

Analysis tests#20

Draft
jwest115 wants to merge 3 commits intomainfrom
analysis-tests
Draft

Analysis tests#20
jwest115 wants to merge 3 commits intomainfrom
analysis-tests

Conversation

@jwest115
Copy link
Copy Markdown
Contributor

@jwest115 jwest115 commented Apr 14, 2026

Addresses the analysis test portion of nasa/fprime#4162.

Python script for converting the fprime-python-model analysis data structure to JSON. Improvements/work to go so that the diff between fprime-python-model and fpp-to-json is 1-1 are:

  • Fix class names JSON (in some contexts, the fpp-to-json does not include class names). Examples to look at would be the typeMap vs. struct and anon struct types.
  • Consider Optionals - right now I do not wrap optionals in a “Some" dictionary
  • Fix Enum encoding
  • JSON encoding for topologies, component instances, etc. I was mainly focused on symbol maps, type maps, component maps, and value maps. I am sure there will be other “special cases” to account for once encoding topologies, component instances, and the state machine analysis.
  • Test script for running the JSON converter against all test cases and diffing them against their reference fpp-to-json analysis output.

Note: While writing these tests, I realized there was something translated incorrectly in the analysis location specifier map translation (the fix is included in this PR).

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.

1 participant