LCOV - code coverage report
Current view: top level - test - test-loopback.c (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 5 6 83.3 %
Date: 2019-08-23 13:36:53 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 4 25.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : 
       3                 :            : #include <stdio.h>
       4                 :            : #include <string.h>
       5                 :            : 
       6                 :            : #include "log.h"
       7                 :            : #include "loopback-setup.h"
       8                 :            : #include "tests.h"
       9                 :            : 
      10                 :          4 : int main(int argc, char* argv[]) {
      11                 :            :         int r;
      12                 :            : 
      13                 :          4 :         test_setup_logging(LOG_DEBUG);
      14                 :            : 
      15                 :          4 :         r = loopback_setup();
      16         [ -  + ]:          4 :         if (r < 0)
      17         [ #  # ]:          0 :                 log_error_errno(r, "loopback: %m");
      18                 :            : 
      19                 :          4 :         return r >= 0 ? EXIT_SUCCESS : EXIT_FAILURE;
      20                 :            : }

Generated by: LCOV version 1.14