LCOV - code coverage report
Current view: top level - libs/mem/tests/src - test_libmem_0021.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 10 10
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 data-to-string conversion accepts an already-string non-byte descriptor
       5                 :             :  *
       6                 :             :  * @return Return describing success or failure
       7                 :             :  */
       8                 :           1 : Return test_libmem_0021(void)
       9                 :             : {
      10                 :           1 :         INITTEST;
      11                 :             : 
      12                 :           1 :         memory already_string_descriptor = m_init(int,MEMORY_STRING);
      13                 :             : 
      14                 :           1 :         ASSERT(SUCCESS == m_to_string(&already_string_descriptor));
      15                 :           1 :         ASSERT(already_string_descriptor.single_element_size == sizeof(int));
      16                 :           1 :         ASSERT(already_string_descriptor.length == 0);
      17                 :           1 :         ASSERT(already_string_descriptor.string_length == 0);
      18                 :           1 :         ASSERT(already_string_descriptor.is_string == true);
      19                 :           1 :         ASSERT(already_string_descriptor.data == NULL);
      20                 :             : 
      21                 :           1 :         RETURN_STATUS;
      22                 :             : }
        

Generated by: LCOV version 2.0-1