Coverage Report

Created: 2026-04-12 07:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/fwupd/libfwupd/fwupd-json-common.c
Line
Count
Source
1
/*
2
 * Copyright 2025 Richard Hughes <richard@hughsie.com>
3
 *
4
 * SPDX-License-Identifier: LGPL-2.1-or-later
5
 */
6
7
#include "config.h"
8
9
#include "fwupd-json-common-private.h"
10
11
/**
12
 * fwupd_json_indent:
13
 * @str: a #GString
14
 * @depth: function depth
15
 *
16
 * Indent the string by the indent depth.
17
 *
18
 * Since: 2.1.1
19
 **/
20
void
21
fwupd_json_indent(GString *str, guint depth)
22
0
{
23
0
  for (guint i = 0; i < 2 * depth; i++)
24
0
    g_string_append(str, " ");
25
0
}