Debian Codegraph @

tests/src/test_amdgpuinfovbios.cpp

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/tests/src/test_amdgpuinfovbios.cpp`/
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #include <catch2/catch_all.hpp>
5
6 #include "common/hwidtranslatorstub.h"cxx . . $ `<file>/tests/src/common/hwidtranslatorstub.h`/
7 #include "common/stringpathdatasourcestub.h"cxx . . $ `<file>/tests/src/common/stringpathdatasourcestub.h`/
8 #include "core/info/amd/gpuinfovbios.h"cxx . . $ `<file>/src/core/info/amd/gpuinfovbios.h`/
9
10 namespace Testscxx . . $ Tests/::AMDcxx . . $ Tests/AMD/::GPUInfoVbioscxx . . $ Tests/AMD/GPUInfoVbios/ {
11
12 TEST_CASEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:144:11`!("GPUInfoVbios tests", "[AMD][Info][GPUInfo][GPUInfoVbios]")
13 {
14 Vendorcxx . . $ Vendor# vendor(Vendorcxx . . $ Vendor#::AMDcxx . . $ Vendor#AMD.);
15 int const gpuIndex = 0;
16 IGPUInfocxx . . $ IGPUInfo#::Pathcxx . . $ IGPUInfo#Path# pathcxx . . $ IGPUInfo#Path#Path(df8cb93b336b884d).("_sys_"cxx . . $ std/filesystem/__cxx11/path#path(835bc3a16b770d4d)., "_dev_"cxx . . $ std/filesystem/__cxx11/path#path(835bc3a16b770d4d).);
17 HWIDTranslatorStubcxx . . $ HWIDTranslatorStub# hwIDTranslator;
18
19 SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Provides the type given by its DataSource")
20 {
21 ::AMDcxx . . $ AMD/::GPUInfoVbioscxx . . $ AMD/GPUInfoVbios# tscxx . . $ AMD/GPUInfoVbios#GPUInfoVbios(50e9a1d442764874).(
22 stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<StringPathDataSourceStubcxx . . $ StringPathDataSourceStub#>("vbios_version", "VERSION"));
23 auto output = ts.provideInfocxx . . $ AMD/GPUInfoVbios#provideInfo(5b65f7e996e13d80).(vendor, gpuIndex, path, hwIDTranslator);
24
25 auto type = stdcxx . . $ std/::make_paircxx . . $ std/make_pair(1d30b6e115203116).(stdcxx . . $ std/::stringcxx . . $ std/string#(::AMDcxx . . $ AMD/::GPUInfoVbioscxx . . $ AMD/GPUInfoVbios#::versioncxx . . $ AMD/GPUInfoVbios#version.),
26 stdcxx . . $ std/::stringcxx . . $ std/string#("VERSION"));
27 REQUIRE_THATcxx . . $ `<external>/3333208929440565380/catch_matchers.hpp:222:11`!(output, Catch::Matchers::VectorContains(type));
28 }
29 }
30
31 } // namespace Tests::AMD::GPUInfoVbios