| 15 | BoostExtractor::BoostExtractor(const SourceCollection &SC) : TCExtractor(SC) {} |
| 16 | |
| 17 | std::vector<Unittest> BoostExtractor::extractTCs() { |
| 18 | std::vector<Unittest> Unittests; |
| 19 | const auto &M = SrcCollection.getLLVMModule(); |
| 20 | for (const auto &ASTUnit : SrcCollection.getASTUnits()) { |
| 21 | auto UTs = getTestcasesFromASTUnit(M, *ASTUnit); |
| 22 | Unittests.insert(Unittests.end(), UTs.begin(), UTs.end()); |
| 23 | } |
| 24 | return Unittests; |
| 25 | } |
| 26 | |
| 27 | const std::vector<Unittest> |
| 28 | BoostExtractor::getTestcasesFromASTUnit(const llvm::Module &M, |
nothing calls this directly
no test coverage detected