MCPcopy Create free account
hub / github.com/Samsung/UTopia / load

Method load

tests/astirmap/TestIRNode.cpp:16–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 std::unique_ptr<SourceCollection> SC;
15
16 bool load(std::string BaseDirPath, std::string CodePath, std::string Opt) {
17 std::vector<std::string> CodePaths = {CodePath};
18 auto CH = TestHelperFactory().createCompileHelper(
19 BaseDirPath, CodePaths, Opt, CompileHelper::SourceType_CPP);
20 if (!CH)
21 return false;
22
23 SC = CH->load();
24 if (!SC)
25 return false;
26
27 AH = std::make_unique<IRAccessHelper>(SC->getLLVMModule());
28 if (!AH)
29 return false;
30
31 DIMap = std::make_unique<DebugInfoMap>(*SC);
32 return !!DIMap;
33 }
34};
35
36TEST_F(TestIRNode, NonDebugLocN) {

Callers 1

TESTFunction · 0.45

Calls 3

TestHelperFactoryClass · 0.85
createCompileHelperMethod · 0.80
getLLVMModuleMethod · 0.80

Tested by

no test coverage detected