Coverage Report

Created: 2025-11-24 06:59

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