LCOV - code coverage report
Current view: top level - test - test-nscd-flush.c (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 0 7 0.0 %
Date: 2019-08-23 13:36:53 Functions: 0 2 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 "main-func.h"
       4                 :            : #include "nscd-flush.h"
       5                 :            : #include "strv.h"
       6                 :            : #include "tests.h"
       7                 :            : 
       8                 :          0 : static int run(int argc, char *argv[]) {
       9                 :            :         int r;
      10                 :            : 
      11                 :          0 :         test_setup_logging(LOG_DEBUG);
      12                 :            : 
      13                 :          0 :         r = nscd_flush_cache(STRV_MAKE("group", "passwd", "hosts"));
      14         [ #  # ]:          0 :         if (r < 0)
      15         [ #  # ]:          0 :                 return log_error_errno(r, "Failed to flush NSCD cache");
      16                 :            : 
      17                 :          0 :         return 0;
      18                 :            : }
      19                 :            : 
      20                 :          0 : DEFINE_MAIN_FUNCTION(run);

Generated by: LCOV version 1.14