LCOV - code coverage report
Current view: top level - src - directory_show.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 7 7
Test Date: 2026-07-12 01:01:34 Functions: 100.0 % 1 1
Branches: 100.0 % 4 4

             Branch data     Line data    Source code
       1                 :             : #include "precizer.h"
       2                 :             : 
       3                 :             : /**
       4                 :             :  * @brief Show the visible include or ignore status for one directory path
       5                 :             :  *
       6                 :             :  * Logs directory matches for --include and --ignore and triggers traversal banners
       7                 :             :  * before the first visible line. Respects --quiet-ignored through slog_show()
       8                 :             :  *
       9                 :             :  * @param[in] relative_path Relative path descriptor being reported
      10                 :             :  * @param[in,out] first_iteration Banner sentinel for the first visible output line
      11                 :             :  * @param[in,out] summary Traversal state used by slog_show()
      12                 :             :  * @param[in] ignore True when the directory matched --ignore
      13                 :             :  * @param[in] include True when the directory matched --include
      14                 :             :  */
      15                 :       15030 : void directory_show(
      16                 :             :         const memory     *relative_path,
      17                 :             :         bool             *first_iteration,
      18                 :             :         TraversalSummary *summary,
      19                 :             :         const bool       ignore,
      20                 :             :         const bool       include)
      21                 :             : {
      22                 :       15030 :         const char *runtime_relative_path = m_text(relative_path);
      23                 :             : 
      24         [ +  + ]:       15030 :         if(ignore == true)
      25                 :             :         {
      26                 :         252 :                 slog_show(EVERY|UNDECOR,true,first_iteration,summary,"ignore directory %s\n",runtime_relative_path);
      27                 :             : 
      28         [ +  + ]:       14778 :         } else if(include == true){
      29                 :             : 
      30                 :          12 :                 slog_show(EVERY|UNDECOR,true,first_iteration,summary,"include directory %s\n",runtime_relative_path);
      31                 :             :         }
      32                 :       15030 : }
        

Generated by: LCOV version 2.0-1