mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-15 17:27:46 -04:00
Add uxQueueGetQueueLength API in queue unit tests (#1074)
* Add uxQueueGetQueueLength API in queue unit tests for code coverage * Update Submodule pointer for Kernel V10.6.1 Signed-off-by: kar-rahul-aws <karahulx@amazon.com>
This commit is contained in:
parent
0948c5eab6
commit
80db00d98b
4 changed files with 17 additions and 2 deletions
|
@ -154,6 +154,9 @@ void test_macro_xQueueCreate_oneItem_zeroLength( void )
|
|||
|
||||
TEST_ASSERT_EQUAL( QUEUE_T_SIZE, getLastMallocSize() );
|
||||
|
||||
/* Verify that Queue Length is one */
|
||||
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueLength( xQueue ) );
|
||||
|
||||
/* Verify that Queue ItemSize is zero */
|
||||
TEST_ASSERT_EQUAL( 0, uxQueueGetQueueItemSize( xQueue ) );
|
||||
|
||||
|
@ -180,6 +183,9 @@ void test_macro_xQueueCreate_oneItem_oneLength( void )
|
|||
|
||||
TEST_ASSERT_EQUAL( QUEUE_T_SIZE + 1, getLastMallocSize() );
|
||||
|
||||
/* Verify that Queue Length is one */
|
||||
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueLength( xQueue ) );
|
||||
|
||||
/* Verify that Queue ItemSize is one */
|
||||
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueItemSize( xQueue ) );
|
||||
|
||||
|
@ -228,6 +234,9 @@ void test_macro_xQueueCreate_oneItem_multiLength( void )
|
|||
|
||||
TEST_ASSERT_EQUAL( QUEUE_T_SIZE + i, getLastMallocSize() );
|
||||
|
||||
/* Verify that Queue Length is one */
|
||||
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueLength( xQueue ) );
|
||||
|
||||
/* Verify that Queue ItemSize is equal to the mailbox size */
|
||||
TEST_ASSERT_EQUAL( i, uxQueueGetQueueItemSize( xQueue ) );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue