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

Method extractTCs

lib/tcanalysis/BoostExtractor.cpp:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15BoostExtractor::BoostExtractor(const SourceCollection &SC) : TCExtractor(SC) {}
16
17std::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
27const std::vector<Unittest>
28BoostExtractor::getTestcasesFromASTUnit(const llvm::Module &M,

Callers

nothing calls this directly

Calls 4

getLLVMModuleMethod · 0.80
endMethod · 0.80
beginMethod · 0.80
getASTUnitsMethod · 0.45

Tested by

no test coverage detected