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

Function TEST_F

tests/astirmap/TestIRNode.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36TEST_F(TestIRNode, NonDebugLocN) {
37 const std::string Code = "extern \"C\" {\n"
38 "void API();\n"
39 "void test() { API(); }\n"
40 "}";
41 SourceFileManager SFM;
42 SFM.createFile("test.cpp", Code);
43 ASSERT_TRUE(load(SFM.getSrcDirPath(), SFM.getFilePath("test.cpp"), "-O0 -w"));
44 auto *I = AH->getInstruction("test", 0, 0);
45 ASSERT_TRUE(I);
46 ASSERT_THROW((void)IRNode(*I), std::runtime_error);
47}

Callers

nothing calls this directly

Calls 5

IRNodeClass · 0.85
getSrcDirPathMethod · 0.80
getInstructionMethod · 0.80
createFileMethod · 0.45
getFilePathMethod · 0.45

Tested by

no test coverage detected