LCOV - code coverage report
Current view: top level - fuzz - fuzz-journald-kmsg.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 2 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : 
       3                 :            : #include "fuzz.h"
       4                 :            : #include "fuzz-journald.h"
       5                 :            : #include "journald-kmsg.h"
       6                 :            : 
       7                 :          0 : int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
       8                 :            :         Server s;
       9                 :            : 
      10         [ #  # ]:          0 :         if (size == 0)
      11                 :          0 :                 return 0;
      12                 :            : 
      13                 :          0 :         dummy_server_init(&s, data, size);
      14                 :          0 :         dev_kmsg_record(&s, s.buffer, size);
      15                 :          0 :         server_done(&s);
      16                 :            : 
      17                 :          0 :         return 0;
      18                 :            : }

Generated by: LCOV version 1.14