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

Method isTestBody

lib/tcanalysis/GoogleTestExtractor.cpp:112–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool GoogleTestExtractor::isTestBody(const llvm::Function *Function) const {
113 std::string MethodFullName =
114 util::getDemangledName(Function->getName().str());
115 return (util::getMethodName(MethodFullName).compare(TestName) == 0);
116}
117
118const std::vector<Unittest>
119GoogleTestExtractor::getTestcasesFromASTUnit(const llvm::Module &M,

Callers

nothing calls this directly

Calls 4

getDemangledNameFunction · 0.85
getMethodNameFunction · 0.85
compareMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected