LCOV - code coverage report
Current view: top level - libs/mem/tests/src - test_libmem_0053.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 9 9
Test Date: 2026-07-12 01:01:34 Functions: 100.0 % 1 1
Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : #include "test_libmem_all.h"
       2                 :             : 
       3                 :             : /**
       4                 :             :  * @brief Check raw pointer reset helper on manually allocated memory
       5                 :             :  *
       6                 :             :  * @return Return describing success or failure
       7                 :             :  */
       8                 :           1 : Return test_libmem_0053(void)
       9                 :             : {
      10                 :           1 :         INITTEST;
      11                 :             : 
      12                 :           1 :         char *manual_buffer = (char *)malloc(64u);
      13                 :           1 :         ASSERT(manual_buffer != NULL);
      14                 :             : 
      15                 :           1 :         IF(manual_buffer != NULL)
      16                 :             :         {
      17                 :           1 :                 strcpy(manual_buffer,"temporary heap payload");
      18                 :             :         }
      19                 :             : 
      20                 :           1 :         m_reset(&manual_buffer);
      21                 :           1 :         ASSERT(manual_buffer == NULL);
      22                 :             : 
      23                 :           1 :         RETURN_STATUS;
      24                 :             : }
        

Generated by: LCOV version 2.0-1