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

Fix #1930, add code coverage for null check #2377

Merged
merged 1 commit into from Oct 23, 2023

Conversation

avan989
Copy link
Contributor

@avan989 avan989 commented Jun 16, 2023

Checklist (Please check before submitting)

Fix #1930 update code coverage test for CFE_ES_GenPoolRecyclePoolBlock and CFE_ES_GenPoolCreatePoolBlock for null pointer check.

Testing performed
Steps taken to test the contribution:

  1. Build SIMULATION=native ENABLE_UNIT_TESTS=true prep
  2. make
  3. make test
  4. make lcov

Expected behavior changes
No impact on behavior

Contributor Info - All information REQUIRED for consideration of pull request
Full name and company/organization/center of all contributors ("Personal" if individual work)

  • Note CLAs apply to only software contributions.

Anh Van, GSFC

@avan989 avan989 force-pushed the 1930-Null-Pointer-Coverage-Test branch 2 times, most recently from ce626e1 to 33e92af Compare June 16, 2023 16:25
@avan989 avan989 changed the title Fix #1930 NULL Pointer Check In ES Fix #1930, add code coverage for null check Jun 16, 2023
@avan989 avan989 force-pushed the 1930-Null-Pointer-Coverage-Test branch from 33e92af to ed943d7 Compare June 16, 2023 16:34
@dzbaker dzbaker requested a review from jphickey June 22, 2023 18:09
Fix nasa#1930, add code coverage for null check in es.
Add CFE_ES_GenPoolCreatePoolBlock and CFE_ES_GenPoolRecyclePoolBlock to
header file
@avan989 avan989 force-pushed the 1930-Null-Pointer-Coverage-Test branch from ed943d7 to 9a16fd3 Compare June 23, 2023 19:23
@skliper
Copy link
Contributor

skliper commented Aug 3, 2023

If this changes coverage, I recommend updating:

missed_branches=52
missed_lines=18

Copy link
Contributor

@jphickey jphickey left a comment

Choose a reason for hiding this comment

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

Looks good. The only note is that at some point we also need to update our workflow minimum enforcement. This has improved the line/branch coverage a bit so we should make sure we don't regress.

Those minimums are here:

missed_branches=52
missed_lines=18

My checks show that we are at 49 and 16 now, respectively.

@dzbaker dzbaker added the CCB:Approved Indicates code review and approval by community CCB label Oct 19, 2023
dzbaker added a commit to nasa/cFS that referenced this pull request Oct 23, 2023
*Combines:*

cFE v7.0.0-rc4+dev405

**Includes:**

*cFE*
- nasa/cFE#2377

Co-authored by: Anh Van <avan989@users.noreply.github.com>
@dzbaker dzbaker merged commit 3822447 into nasa:main Oct 23, 2023
21 checks passed
dzbaker added a commit to nasa/cFS that referenced this pull request Oct 23, 2023
*Combines:*

cFE v7.0.0-rc4+dev405

**Includes:**

*cFE*
- nasa/cFE#2377

Co-authored by: Anh Van <avan989@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB Equuleus-rc2
Projects
None yet
4 participants