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

Method extractTCs

lib/tcanalysis/GoogleTestExtractor.cpp:200–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200std::vector<Unittest> GoogleTestExtractor::extractTCs() {
201 std::vector<Unittest> Unittests;
202 const auto &M = SrcCollection.getLLVMModule();
203 for (const auto &ASTUnit : SrcCollection.getASTUnits()) {
204 auto UTs = getTestcasesFromASTUnit(M, *ASTUnit);
205 Unittests.insert(Unittests.end(), UTs.begin(), UTs.end());
206 }
207 return Unittests;
208}

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