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

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

Generated by: LCOV version 2.0-1