Skip to content

Commit

Permalink
Set line coverage limit to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot committed May 16, 2024
1 parent e31f819 commit 2b40088
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
if: steps.build-unit-tests.outcome == 'success'
with:
coverage-file: ./build/coverage.info
line-coverage-min: 99
line-coverage-min: 100
branch-coverage-min: 90

- name: Archive Test Results
Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen/include/size_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
<tr>
<td><b>Total estimates</b></td>
<td><b><center>10.3K</center></b></td>
<td><b><center>8.5K</center></b></td>
<td><b><center>8.4K</center></b></td>
</tr>
</table>
6 changes: 3 additions & 3 deletions test/wrapper_utest/core_pkcs11_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static CK_RV prvSetFunctionList( CK_FUNCTION_LIST_PTR_PTR ppxPtr )
/*!
* @brief Create a stub for the PKCS #11 function list.
*
* Fails on the fourth call in order to create coverage for a nested branch.
* Fails on the thrid call in order to create coverage for a nested branch.
*
*/
static CK_RV prvSetFunctionList2( CK_FUNCTION_LIST_PTR_PTR ppxPtr )
Expand All @@ -205,7 +205,7 @@ static CK_RV prvSetFunctionList2( CK_FUNCTION_LIST_PTR_PTR ppxPtr )
/*!
* @brief Create a stub for the PKCS #11 function list.
*
* Fails on the fourth call in order to create coverage for a nested branch.
* Fails on the third call in order to create coverage for a nested branch.
*
*/
static CK_RV prvSetFunctionList3( CK_FUNCTION_LIST_PTR_PTR ppxPtr )
Expand All @@ -217,7 +217,7 @@ static CK_RV prvSetFunctionList3( CK_FUNCTION_LIST_PTR_PTR ppxPtr )

if( ulCalls == 3 )
{
xResult = CKR_OK;
/* Return CKR_OK but with NULL function list pointer here. */
*ppxPtr = NULL;
}
else
Expand Down

0 comments on commit 2b40088

Please sign in to comment.