LCOV - code coverage report
Current view: top level - test - write_test_utils.h (source / functions) Hit Total Coverage
Test: Code coverage Lines: 4 4 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 2025 David Robillard <d@drobilla.net>
       2                 :            : // SPDX-License-Identifier: ISC
       3                 :            : 
       4                 :            : #ifndef EXESS_TEST_WRITE_TEST_UTILS_H
       5                 :            : #define EXESS_TEST_WRITE_TEST_UTILS_H
       6                 :            : 
       7                 :            : #include <stddef.h>
       8                 :            : 
       9                 :            : static inline void
      10                 :      10026 : init_out_buf(const size_t buf_size, char* const buf)
      11                 :            : {
      12         [ +  + ]:    1531973 :   for (size_t i = 0; i < buf_size; ++i) {
      13                 :    1521947 :     buf[i] = (char)(i + 1);
      14                 :            :   }
      15                 :      10026 : }
      16                 :            : 
      17                 :            : #endif // EXESS_TEST_WRITE_TEST_UTILS_H

Generated by: LCOV version 1.16