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

             Branch data     Line data    Source code
       1                 :             : #include "precizer.h"
       2                 :             : 
       3                 :             : /**
       4                 :             :  * @brief Display include/ignore status for a directory path.
       5                 :             :  *
       6                 :             :  * Logs matches for --include/--ignore and triggers traversal banners
       7                 :             :  * before the first visible log line. Respects --quiet-ignored.
       8                 :             :  *
       9                 :             :  */
      10                 :       10104 : void directory_show(
      11                 :             :         const char       *relative_path,
      12                 :             :         bool             *first_iteration,
      13                 :             :         TraversalSummary *summary,
      14                 :             :         const bool       ignore,
      15                 :             :         const bool       include)
      16                 :             : {
      17         [ +  + ]:       10104 :         if(ignore == true)
      18                 :             :         {
      19                 :         116 :                 slog_show(EVERY|UNDECOR,true,first_iteration,summary,"ignore directory %s\n",relative_path);
      20                 :             : 
      21         [ +  + ]:        9988 :         } else if(include == true){
      22                 :             : 
      23                 :          12 :                 slog_show(EVERY|UNDECOR,true,first_iteration,summary,"include directory %s\n",relative_path);
      24                 :             :         }
      25                 :       10104 : }
        

Generated by: LCOV version 2.0-1