LCOV - code coverage report
Current view: top level - basic - errno-list.h (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 2 2 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: 4 4 100.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : #pragma once
       3                 :            : 
       4                 :            : #include <stdbool.h>
       5                 :            : /*
       6                 :            :  * MAX_ERRNO is defined as 4095 in linux/err.h
       7                 :            :  * We use the same value here.
       8                 :            :  */
       9                 :            : #define ERRNO_MAX 4095
      10                 :            : 
      11                 :            : const char *errno_to_name(int id);
      12                 :            : int errno_from_name(const char *name);
      13                 :         44 : static inline bool errno_is_valid(int n) {
      14   [ +  +  +  + ]:         44 :         return n > 0 && n <= ERRNO_MAX;
      15                 :            : }

Generated by: LCOV version 1.14