Skip to content

Conversation

@thnkslprpt
Copy link
Contributor

Checklist

Describe the contribution

Note:
Might need to add back the previous SC_MANAGE_TABLE_CC and associated command functions (maybe behind deprecation guards) for backward-compatibility but have left out of this pull request for now to make review of the new version simpler.

Testing performed
GitHub CI actions all passing successfully (incl. Build + Run, Unit/Functional Tests etc.).
New tests added in unit-test/sc_app_tests.c covering the main logic paths (not exactly 100% MC/DC coverage but close).

Expected behavior changes
A lot of complexity can be removed from the app with this update.

System(s) tested on
Debian 12 using the current main branch of cFS bundle.

Contributor Info
Avi Weiss   @thnkslprpt

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

void SC_RegisterManageCmds(void)
void SC_ManageTables(void)

Check notice

Code scanning / CodeQL

Long function without assertion Note

All functions of more than 10 lines should have at least one assertion.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

void SC_RegisterManageCmds(void)
void SC_ManageTables(void)

Check notice

Code scanning / CodeQL

Function too long Note

SC_ManageTables has too many lines (71, while 60 are allowed).
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.

Could simplify by just managing tables periodically vs by registering for command (unique approach across common apps)

1 participant