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

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : 
       3                 :            : #include <string.h>
       4                 :            : 
       5                 :            : #include "login-util.h"
       6                 :            : #include "string-util.h"
       7                 :            : 
       8                 :        780 : bool session_id_valid(const char *id) {
       9                 :            : 
      10         [ +  + ]:        780 :         if (isempty(id))
      11                 :          8 :                 return false;
      12                 :            : 
      13                 :        772 :         return id[strspn(id, LETTERS DIGITS)] == '\0';
      14                 :            : }

Generated by: LCOV version 1.14