SolidSyslog coverage report
Current view: top level - Core/Source - SolidSyslogFileBlockDeviceErrorsName.c (source / functions) Coverage Total Hit
Test: SolidSyslog Lines: 100.0 % 2 2
Test Date: 2026-11-12 23:14:35 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /* SPDX-FileCopyrightText: Copyright 2026 Cozens Software Solutions Limited
       2              :  * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 OR LicenseRef-PolyForm-Internal-Use-1.0.0 OR LicenseRef-COSOSO-Commercial
       3              :  */
       4              : 
       5              : #include "SolidSyslogFileBlockDeviceErrors.h"
       6              : 
       7              : #include <stdint.h>
       8              : 
       9              : #include "SolidSyslogErrorName.h"
      10              : 
      11              : /* Indexed by the enum, so no name can shift; a code without one is NULL. */
      12            5 : const char* SolidSyslogFileBlockDeviceErrors_Name(int32_t detail)
      13              : {
      14              :     static const char* const names[SOLIDSYSLOG_FILE_BLOCK_DEVICE_ERROR_MAX] = {
      15              :         [SOLIDSYSLOG_FILE_BLOCK_DEVICE_ERROR_POOL_EXHAUSTED] = "POOL_EXHAUSTED",
      16              :         [SOLIDSYSLOG_FILE_BLOCK_DEVICE_ERROR_UNKNOWN_DESTROY] = "UNKNOWN_DESTROY",
      17              :     };
      18              : 
      19            5 :     return SolidSyslogErrorName_Lookup(names, (int32_t) SOLIDSYSLOG_FILE_BLOCK_DEVICE_ERROR_MAX, detail);
      20              : }
        

Generated by: LCOV version 2.0-1