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

Method findTestMethod

lib/tcanalysis/GoogleTestExtractor.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54const CXXMethodDecl *
55GoogleTestExtractor::findTestMethod(const CXXRecordDecl *TestCXXRecordDecl,
56 std::string TestMethodName) {
57 std::vector<CXXMethodDecl *> TestMethods =
58 util::findCXXMethodDeclFromCXXRecordDecls(TestCXXRecordDecl,
59 TestMethodName);
60 if (!TestMethods.empty())
61 return TestMethods.back();
62 return nullptr;
63}
64
65const CXXMethodDecl *GoogleTestExtractor::findTestMethodRecursively(
66 const CXXRecordDecl *ClassCXXRecordDecl, std::string TargetMethodName) {

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80

Tested by

no test coverage detected