Coverage Report

Created: 2026-02-26 06:27

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/work/fu-protobuf-struct.c
Line
Count
Source
1
/*
2
 * This file is auto-generated, do not modify!
3
 *
4
 * SPDX-License-Identifier: LGPL-2.1-or-later
5
 */
6
7
#include "config.h"
8
9
#include <glib.h>
10
11
#include "fu-protobuf-struct.h"
12
13
#ifdef G_LOG_DOMAIN
14
  #undef G_LOG_DOMAIN
15
#endif
16
#define G_LOG_DOMAIN "FuStruct"
17
18
/**
19
 * fu_protobuf_wire_type_to_string:
20
 * @val: value, e.g. %FU_PROTOBUF_WIRE_TYPE_INT64
21
 *
22
 * Converts an enumerated value to a string.
23
 *
24
 * Returns: identifier string
25
 **/
26
const gchar *
27
fu_protobuf_wire_type_to_string(FuProtobufWireType val)
28
8.32M
{
29
8.32M
    if (val == FU_PROTOBUF_WIRE_TYPE_VARINT)
30
5.54M
        return "varint";
31
2.77M
    if (val == FU_PROTOBUF_WIRE_TYPE_INT64)
32
68.9k
        return "int64";
33
2.71M
    if (val == FU_PROTOBUF_WIRE_TYPE_LEN)
34
1.56M
        return "len";
35
1.14M
    if (val == FU_PROTOBUF_WIRE_TYPE_START_GROUP)
36
14
        return "start-group";
37
1.14M
    if (val == FU_PROTOBUF_WIRE_TYPE_END_GROUP)
38
6
        return "end-group";
39
1.14M
    if (val == FU_PROTOBUF_WIRE_TYPE_INT32)
40
1.14M
        return "int32";
41
32
    return NULL;
42
1.14M
}