LCOV - code coverage report
Current view: top level - tests/src - sute.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 36 36
Test Date: 2026-03-31 13:51:38 Functions: 100.0 % 1 1
Branches: 50.0 % 38 19

             Branch data     Line data    Source code
       1                 :             : #include "sute.h"
       2                 :             : 
       3                 :             : /**
       4                 :             :  * @brief Run the top-level test suite executable
       5                 :             :  *
       6                 :             :  * @return Process exit status produced by the test runner macros
       7                 :             :  */
       8                 :           1 : int main(void)
       9                 :             : {
      10                 :           1 :         SUTESTART;
      11                 :             : 
      12   [ +  -  +  - ]:           1 :         HEADER("Preparations");
      13                 :           1 :         TEST(prepare,"Preparation for tests");
      14                 :             : 
      15   [ +  -  -  + ]:           1 :         HEADER("Test examples");
      16                 :             :         // Test function name and its short description
      17                 :           1 :         TEST(test0004,"Example test…");
      18                 :           1 :         TEST(test0005,"Example test…");
      19                 :           1 :         TEST(test0006,"Example test…");
      20                 :           1 :         TEST(test0010,"Testitall library capability demonstration…");
      21                 :             : 
      22   [ +  -  -  + ]:           1 :         HEADER("Testing of built-in libraries");
      23                 :           1 :         TEST(test0001,"libsha512 hash check with sha512…");
      24                 :           1 :         TEST(test0002,"An empty example…");
      25                 :           1 :         SUTE(test0007,"libmem Memory allocator test set…");
      26                 :           1 :         TEST(test0032,"librational formatting test…");
      27                 :           1 :         SUTE(test0008,"librational report/logger test set…");
      28                 :           1 :         TEST(test0017,"librational test itoa function…");
      29                 :             : 
      30   [ +  -  -  + ]:           1 :         HEADER("Unit Testing of precizer's functions");
      31                 :           1 :         SUTE(test0012,"add_string_to_array() test set…");
      32                 :             : #if 0
      33                 :             :         TEST(test0021,"Native international UTF8 encoding test set…");
      34                 :             : #endif
      35                 :           1 :         TEST(test0022,"remove_trailing_slash() test set…");
      36                 :           1 :         TEST(test0023,"extract_relative_path() test set…");
      37                 :           1 :         SUTE(test0025,"file_buffer_memory() test set…");
      38                 :           1 :         TEST(test0026,"file_check_access() test set…");
      39                 :           1 :         TEST(test0035,"create_tmpdir() honors TMPDIR and fallback…");
      40                 :           1 :         TEST(test0036,"delete_path() removes a regular file…");
      41                 :           1 :         SUTE(test0037,"Helper diagnostics for path construction and deletion…");
      42                 :             : 
      43   [ +  -  -  + ]:           1 :         HEADER("Unit Testing of precizer");
      44                 :           1 :         TEST(comprehensive_unit_testing,"Comprehensive Unit testing…");
      45                 :             : 
      46   [ +  -  -  + ]:           1 :         HEADER("System Testing of precizer");
      47                 :           1 :         TEST(comprehensive_system_testing,"Comprehensive System testing…");
      48                 :             : 
      49                 :             :         /* Mock only tecting in unit-mode so the linker wraps are active */
      50                 :             :         #ifndef EVIL_EMPIRE_OS
      51   [ +  -  -  + ]:           1 :         HEADER("Mock-Based Testing of precizer");
      52                 :           1 :         TEST(comprehensive_mock_testing,"Comprehensive Mock testing…");
      53                 :             :         #endif
      54                 :             : 
      55   [ +  -  -  + ]:           1 :         HEADER("Clean results");
      56                 :           1 :         RUN(clean,"Temporary data cleanup…");
      57                 :             : 
      58                 :           1 :         RUN(finish,"Telemetry");
      59                 :             : 
      60   [ +  -  -  + ]:           1 :         HEADER("Finishing");
      61         [ +  - ]:           1 :         SUTEDONE;
      62                 :             : }
        

Generated by: LCOV version 2.0-1