| 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 | |
| 36 | TEST_F(TestIRNode, NonDebugLocN) { |
no test coverage detected