Coverage Report

Created: 2025-07-01 07:09

/work/fu-device-struct.c
Line
Count
Source (jump to first uncovered line)
1
/* auto-generated, do not modify */
2
#include "config.h"
3
4
#include "fu-device-struct.h"
5
6
#ifdef G_LOG_DOMAIN
7
  #undef G_LOG_DOMAIN
8
#endif
9
#define G_LOG_DOMAIN "FuStruct"
10
11
gchar *
12
fu_device_instance_flag_to_string(FuDeviceInstanceFlag val)
13
0
{
14
0
    const gchar *data[5] = {0};
15
0
    guint idx = 0;
16
0
    if (val == FU_DEVICE_INSTANCE_FLAG_NONE)
17
0
        return g_strdup("none");
18
0
    if (val & FU_DEVICE_INSTANCE_FLAG_VISIBLE)
19
0
        data[idx++] = "visible";
20
0
    if (val & FU_DEVICE_INSTANCE_FLAG_QUIRKS)
21
0
        data[idx++] = "quirks";
22
0
    if (val & FU_DEVICE_INSTANCE_FLAG_GENERIC)
23
0
        data[idx++] = "generic";
24
0
    if (val & FU_DEVICE_INSTANCE_FLAG_COUNTERPART)
25
0
        data[idx++] = "counterpart";
26
0
    return g_strjoinv(",", (gchar **)data);
27
0
}