LCOV - code coverage report
Current view: top level - libudev - libudev-util.h (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 2 4 50.0 %
Date: 2019-08-23 13:36:53 Functions: 2 4 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 8 25.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : #pragma once
       3                 :            : 
       4                 :            : #include "libudev.h"
       5                 :            : 
       6                 :            : #include "macro.h"
       7                 :            : 
       8                 :            : /* libudev-util.c */
       9                 :            : #define UTIL_PATH_SIZE                      1024
      10                 :            : #define UTIL_NAME_SIZE                       512
      11                 :            : #define UTIL_LINE_SIZE                     16384
      12                 :            : #define UDEV_ALLOWED_CHARS_INPUT        "/ $%?,"
      13                 :            : size_t util_path_encode(const char *src, char *dest, size_t size);
      14                 :            : size_t util_replace_whitespace(const char *str, char *to, size_t len);
      15                 :            : size_t util_replace_chars(char *str, const char *white);
      16                 :            : int util_resolve_subsys_kernel(const char *string, char *result, size_t maxsize, bool read_value);
      17                 :            : 
      18                 :            : /* Cleanup functions */
      19         [ +  - ]:          4 : DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref);
      20         [ +  - ]:         28 : DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_device*, udev_device_unref);
      21                 :            : DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_enumerate*, udev_enumerate_unref);
      22         [ #  # ]:          0 : DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);
      23                 :            : DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_hwdb*, udev_hwdb_unref);
      24         [ #  # ]:          0 : DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_queue*, udev_queue_unref);

Generated by: LCOV version 1.14