LCOV - code coverage report
Current view: top level - fuzz - fuzz-bus-label.c (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 0 7 0.0 %
Date: 2019-08-23 13:36:53 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : 
       3                 :            : #include <errno.h>
       4                 :            : 
       5                 :            : #include "alloc-util.h"
       6                 :            : #include "bus-label.h"
       7                 :            : #include "fuzz.h"
       8                 :            : 
       9                 :          0 : int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
      10                 :          0 :         _cleanup_free_ char *unescaped = NULL, *escaped = NULL;
      11                 :            : 
      12                 :          0 :         unescaped = bus_label_unescape_n((const char*)data, size);
      13         [ #  # ]:          0 :         assert_se(unescaped != NULL);
      14                 :          0 :         escaped = bus_label_escape(unescaped);
      15         [ #  # ]:          0 :         assert_se(escaped != NULL);
      16                 :            : 
      17                 :          0 :         return 0;
      18                 :            : }

Generated by: LCOV version 1.14