Skip to content

Fix #2695, Updates in-range external MET state path TIME UT - #2770

Merged
chillfig merged 1 commit into
devfrom
fix-2695-time-ext-met-coverage
Jun 29, 2026
Merged

chillfig merged 1 commit into
devfrom
fix-2695-time-ext-met-coverage

Conversation

@chillfig

@chillfig chillfig commented Jun 25, 2026 •

Copy link
Copy Markdown
Member

Checklist (Please check before submitting)

Describe the contribution

  • Fixes TIME branch coverage less than 100% with config #2695, This updates the existing in-range MET case in Test_External() to exercise the ClockSetState == WAS_SET and in-range path in CFE_TIME_ToneSendMET(). It also adds an InternalCount == 0 assertion to confirm the test stays on the external-data path

Testing performed
cfe time lcov with and without the config changes below:
DEFAULT_CFE_MISSION_TIME_CFG_FAKE_TONE = false
DEFAULT_CFE_PLATFORM_TIME_CFG_SOURCE = true
DEFAULT_CFE_PLATFORM_TIME_CFG_SRC_MET = true

Expected behavior changes
provides coverage for 1 uncovered branch in CFE_TIME_ToneSendMET() when configured as specified above.

System(s) tested on
Ubuntu 24.04

Additional context
InternalCount and ExternalCount are incremented by mutually exclusive paths. The new assertion is there to make the test self-contained and explicitly confirm that the in-range, state case stayed on the external data path.

#2700 was merged to main unintentionally. This merges correctly to dev.

Third party code
N/A

Contributor Info - All information REQUIRED for consideration of pull request
Justin Figueroa, Vantage Systems Inc

@chillfig

Copy link
Copy Markdown
Member Author

Attached are the lcov results for cFE Time showing improved coverage and the other result is less by 1 branch coverage both with the following configuration:
DEFAULT_CFE_MISSION_TIME_CFG_FAKE_TONE = false
DEFAULT_CFE_PLATFORM_TIME_CFG_SOURCE = true
DEFAULT_CFE_PLATFORM_TIME_CFG_SRC_MET = true
lcov_time_20260625_200018_before.zip
lcov_time_20260625_200200_after.zip

@chillfig
chillfig force-pushed the fix-2695-time-ext-met-coverage branch from d67c8c6 to fdff65e Compare June 26, 2026 00:14
@chillfig chillfig self-assigned this Jun 29, 2026
@chillfig
chillfig merged commit bdb75a4 into dev Jun 29, 2026
21 checks passed
@jphickey
jphickey deleted the fix-2695-time-ext-met-coverage branch October 26, 2026 13:26
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.

TIME branch coverage less than 100% with config

2 participants