Coverage Report

Created: 2026-03-11 06:21

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/u-boot/test/dm/qfw.c
Line
Count
Source
1
// SPDX-License-Identifier: GPL-2.0+
2
/*
3
 * Copyright 2021 Asherah Connor <ashe@kivikakk.ee>
4
 */
5
6
#include <qfw.h>
7
#include <dm.h>
8
#include <asm/test.h>
9
#include <dm/test.h>
10
#include <test/ut.h>
11
12
/*
13
 * Exercise the device enough to be satisfied the initialisation and DMA
14
 * interfaces work.
15
 */
16
17
static int dm_test_qfw_cpus(struct unit_test_state *uts)
18
0
{
19
0
  struct udevice *dev;
20
21
0
  ut_assertok(uclass_first_device_err(UCLASS_QFW, &dev));
22
0
  ut_asserteq(5, qfw_online_cpus(dev));
23
24
0
  return 0;
25
0
}
26
DM_TEST(dm_test_qfw_cpus, UTF_SCAN_PDATA);
27
28
static int dm_test_qfw_firmware_list(struct unit_test_state *uts)
29
0
{
30
0
  struct udevice *dev;
31
0
  struct fw_file *file;
32
33
0
  ut_assertok(uclass_first_device_err(UCLASS_QFW, &dev));
34
0
  ut_assertok(qfw_read_firmware_list(dev));
35
0
  ut_assertok_ptr((file = qfw_find_file(dev, "test-one")));
36
37
0
  return 0;
38
0
}
39
DM_TEST(dm_test_qfw_firmware_list, UTF_SCAN_PDATA);