Lines Matching refs:xConfig
61 BitConfig_t xConfig, * pxConfig = &xConfig; in test_xBitConfig_init_Fail() local
66 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_xBitConfig_init_Fail()
83 BitConfig_t xConfig, * pxConfig = &xConfig; in test_xBitConfig_init_pucDataNull() local
90 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_xBitConfig_init_pucDataNull()
112 BitConfig_t xConfig; in test_xBitConfig_init_HappyPath() local
119 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_xBitConfig_init_HappyPath()
122 xConfig.ucContents = ucContent; in test_xBitConfig_init_HappyPath()
126 xResult = xBitConfig_init( &xConfig, ucData, uxSize ); in test_xBitConfig_init_HappyPath()
129 TEST_ASSERT_EQUAL( uxSize, xConfig.uxSize ); in test_xBitConfig_init_HappyPath()
140 BitConfig_t xConfig; in test_xBitConfig_read_uc_xHasError() local
144 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_xBitConfig_read_uc_xHasError()
145 xConfig.xHasError = pdTRUE; in test_xBitConfig_read_uc_xHasError()
147 xResult = xBitConfig_read_uc( &xConfig, pucData, SIZE_OF_BINARY_STREAM ); in test_xBitConfig_read_uc_xHasError()
160 BitConfig_t xConfig, * pxConfig = &xConfig; in test_xBitConfig_read_uc_OutOfBoundRead() local
183 BitConfig_t xConfig, * pxConfig = &xConfig; in test_xBitConfig_read_uc_NullData() local
204 BitConfig_t xConfig, * pxConfig = &xConfig; in test_xBitConfig_read_uc_HappyPath() local
233 BitConfig_t xConfig; in test_pucBitConfig_peek_last_index_uc_xHasError() local
237 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_pucBitConfig_peek_last_index_uc_xHasError()
238 xConfig.xHasError = pdTRUE; in test_pucBitConfig_peek_last_index_uc_xHasError()
240 xResult = pucBitConfig_peek_last_index_uc( &xConfig, NULL, uxSize ); in test_pucBitConfig_peek_last_index_uc_xHasError()
253 BitConfig_t xConfig; in test_pucBitConfig_peek_last_index_uc_NullpucData() local
257 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_pucBitConfig_peek_last_index_uc_NullpucData()
258 xConfig.xHasError = pdFALSE; in test_pucBitConfig_peek_last_index_uc_NullpucData()
259 xConfig.uxIndex = uxSize; in test_pucBitConfig_peek_last_index_uc_NullpucData()
261 xResult = pucBitConfig_peek_last_index_uc( &xConfig, NULL, uxSize ); in test_pucBitConfig_peek_last_index_uc_NullpucData()
264 TEST_ASSERT_EQUAL( pdTRUE, xConfig.xHasError ); in test_pucBitConfig_peek_last_index_uc_NullpucData()
276 BitConfig_t xConfig; in test_pucBitConfig_peek_OutOfBound() local
281 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_pucBitConfig_peek_OutOfBound()
282 xConfig.xHasError = pdFALSE; in test_pucBitConfig_peek_OutOfBound()
283 xConfig.uxIndex = 0; in test_pucBitConfig_peek_OutOfBound()
285 xResult = pucBitConfig_peek_last_index_uc( &xConfig, &ucData, uxSize ); in test_pucBitConfig_peek_OutOfBound()
288 TEST_ASSERT_EQUAL( pdTRUE, xConfig.xHasError ); in test_pucBitConfig_peek_OutOfBound()
299 BitConfig_t xConfig; in test_pucBitConfig_peek_last_index_uc_HappyPath() local
304 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_pucBitConfig_peek_last_index_uc_HappyPath()
307 xConfig.xHasError = pdFALSE; in test_pucBitConfig_peek_last_index_uc_HappyPath()
308 xConfig.uxIndex = SIZE_OF_BINARY_STREAM; in test_pucBitConfig_peek_last_index_uc_HappyPath()
309 xConfig.ucContents = ucContents; in test_pucBitConfig_peek_last_index_uc_HappyPath()
311 xResult = pucBitConfig_peek_last_index_uc( &xConfig, ucData, uxSize ); in test_pucBitConfig_peek_last_index_uc_HappyPath()
314 TEST_ASSERT_EQUAL_MEMORY( xConfig.ucContents, ucData, uxSize ); in test_pucBitConfig_peek_last_index_uc_HappyPath()
325 BitConfig_t xConfig, * pxConfig = &xConfig; in test_ucBitConfig_read_8_fail() local
328 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_ucBitConfig_read_8_fail()
343 BitConfig_t xConfig, * pxConfig = &xConfig; in test_xBitConfig_read_8_HappyPath() local
348 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_xBitConfig_read_8_HappyPath()
370 BitConfig_t xConfig, * pxConfig = &xConfig; in test_usBitConfig_read_16_fail() local
373 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_usBitConfig_read_16_fail()
379 TEST_ASSERT_EQUAL( pdTRUE, xConfig.xHasError ); in test_usBitConfig_read_16_fail()
389 BitConfig_t xConfig, * pxConfig = &xConfig; in test_usBitConfig_read_16_HappyPath() local
394 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_usBitConfig_read_16_HappyPath()
417 BitConfig_t xConfig, * pxConfig = &xConfig; in test_ulBitConfig_read_32_fail() local
420 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_ulBitConfig_read_32_fail()
426 TEST_ASSERT_EQUAL( pdTRUE, xConfig.xHasError ); in test_ulBitConfig_read_32_fail()
436 BitConfig_t xConfig, * pxConfig = &xConfig; in test_ulBitConfig_read_32_HappyPath() local
441 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_ulBitConfig_read_32_HappyPath()
466 BitConfig_t xConfig; in test_vBitConfig_write_uc_xHasError() local
469 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_vBitConfig_write_uc_xHasError()
470 xConfig.xHasError = pdTRUE; in test_vBitConfig_write_uc_xHasError()
472 vBitConfig_write_uc( &xConfig, pucData, SIZE_OF_BINARY_STREAM ); in test_vBitConfig_write_uc_xHasError()
483 BitConfig_t xConfig; in test_vBitConfig_write_uc_OutOfBoundWrite() local
486 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_vBitConfig_write_uc_OutOfBoundWrite()
487 xConfig.xHasError = pdFALSE; in test_vBitConfig_write_uc_OutOfBoundWrite()
488 xConfig.uxIndex = SIZE_OF_BINARY_STREAM; in test_vBitConfig_write_uc_OutOfBoundWrite()
489 xConfig.uxSize = SIZE_OF_BINARY_STREAM; in test_vBitConfig_write_uc_OutOfBoundWrite()
491 vBitConfig_write_uc( &xConfig, pucData, SIZE_OF_BINARY_STREAM ); in test_vBitConfig_write_uc_OutOfBoundWrite()
493 TEST_ASSERT_EQUAL( pdTRUE, xConfig.xHasError ); in test_vBitConfig_write_uc_OutOfBoundWrite()
503 BitConfig_t xConfig; in test_vBitConfig_write_uc_HappyPath() local
508 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_vBitConfig_write_uc_HappyPath()
511 xConfig.xHasError = pdFALSE; in test_vBitConfig_write_uc_HappyPath()
512 xConfig.uxIndex = 0; in test_vBitConfig_write_uc_HappyPath()
513 xConfig.uxSize = uxSize; in test_vBitConfig_write_uc_HappyPath()
514 xConfig.ucContents = ucContents; in test_vBitConfig_write_uc_HappyPath()
516 vBitConfig_write_uc( &xConfig, ucData, uxSize ); in test_vBitConfig_write_uc_HappyPath()
518 TEST_ASSERT_EQUAL( SIZE_OF_BINARY_STREAM, xConfig.uxIndex ); in test_vBitConfig_write_uc_HappyPath()
519 TEST_ASSERT_EQUAL_MEMORY( xConfig.ucContents, ucData, uxSize ); in test_vBitConfig_write_uc_HappyPath()
528 BitConfig_t xConfig; in test_vBitConfig_write_8() local
533 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_vBitConfig_write_8()
535 xConfig.xHasError = pdFALSE; in test_vBitConfig_write_8()
536 xConfig.uxIndex = uxIndex; in test_vBitConfig_write_8()
537 xConfig.uxSize = uxSize; in test_vBitConfig_write_8()
538 xConfig.ucContents = ucContents; in test_vBitConfig_write_8()
540 vBitConfig_write_8( &xConfig, ucValue ); in test_vBitConfig_write_8()
542 TEST_ASSERT_EQUAL( sizeof( uint8_t ), xConfig.uxIndex ); in test_vBitConfig_write_8()
543 TEST_ASSERT_EQUAL( xConfig.ucContents[ uxIndex ], ucValue ); in test_vBitConfig_write_8()
552 BitConfig_t xConfig; in test_vBitConfig_write_16() local
561 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_vBitConfig_write_16()
563 xConfig.xHasError = pdFALSE; in test_vBitConfig_write_16()
564 xConfig.uxIndex = 0; in test_vBitConfig_write_16()
565 xConfig.uxSize = uxSize; in test_vBitConfig_write_16()
566 xConfig.ucContents = ucContents; in test_vBitConfig_write_16()
568 vBitConfig_write_16( &xConfig, ucValue ); in test_vBitConfig_write_16()
570 TEST_ASSERT_EQUAL( sizeof( uint16_t ), xConfig.uxIndex ); in test_vBitConfig_write_16()
571 TEST_ASSERT_EQUAL_MEMORY( xConfig.ucContents, pucData, sizeof( ucValue ) ); in test_vBitConfig_write_16()
580 BitConfig_t xConfig; in test_vBitConfig_write_32() local
586 memset( &xConfig, 0, sizeof( BitConfig_t ) ); in test_vBitConfig_write_32()
587 xConfig.xHasError = pdFALSE; in test_vBitConfig_write_32()
588 xConfig.uxIndex = 0; in test_vBitConfig_write_32()
589 xConfig.uxSize = uxSize; in test_vBitConfig_write_32()
590 xConfig.ucContents = ucContents; in test_vBitConfig_write_32()
597 vBitConfig_write_32( &xConfig, ucValue ); in test_vBitConfig_write_32()
599 TEST_ASSERT_EQUAL( sizeof( uint32_t ), xConfig.uxIndex ); in test_vBitConfig_write_32()
600 TEST_ASSERT_EQUAL_MEMORY( xConfig.ucContents, pucData, sizeof( ucValue ) ); in test_vBitConfig_write_32()
620 BitConfig_t xConfig, xConfigExpected; in test_vBitConfig_ReleaseNULL() local
622 memset( &xConfig, 1, sizeof( BitConfig_t ) ); in test_vBitConfig_ReleaseNULL()
624 xConfig.ucContents = NULL; in test_vBitConfig_ReleaseNULL()
626 vBitConfig_release( &xConfig ); in test_vBitConfig_ReleaseNULL()
628 TEST_ASSERT_EQUAL_MEMORY( &xConfigExpected, &xConfig, sizeof( BitConfig_t ) ); in test_vBitConfig_ReleaseNULL()
637 BitConfig_t xConfig, xConfigExpected; in test_vBitConfig_Release() local
640 memset( &xConfig, 1, sizeof( BitConfig_t ) ); in test_vBitConfig_Release()
643 xConfig.ucContents = ucContent; in test_vBitConfig_Release()
647 vBitConfig_release( &xConfig ); in test_vBitConfig_Release()
649 TEST_ASSERT_EQUAL_MEMORY( &xConfigExpected, &xConfig, sizeof( BitConfig_t ) ); in test_vBitConfig_Release()