LCOV - code coverage report
Current view: top level - src - read_utils.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 5 5 100.0 %
Date: 2026-07-14 21:28:07 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 2 100.0 %

           Branch data     Line data    Source code
       1                 :            : // Copyright 2019-2026 David Robillard <d@drobilla.net>
       2                 :            : // SPDX-License-Identifier: ISC
       3                 :            : 
       4                 :            : #include "read_utils.h"
       5                 :            : 
       6                 :            : #include "char_utils.h"
       7                 :            : 
       8                 :            : #include <exess/exess.h>
       9                 :            : 
      10                 :            : EXESS_NONBLOCKING size_t
      11                 :     288341 : skip_whitespace(const char* const str)
      12                 :            : {
      13                 :     288341 :   size_t i = 0;
      14         [ +  + ]:     288679 :   while (is_space(str[i])) {
      15                 :        338 :     ++i;
      16                 :            :   }
      17                 :            : 
      18                 :     288341 :   return i;
      19                 :            : }

Generated by: LCOV version 1.16