Merge pull request #4060 from bgianfo/patch-1

C++: Detect GoogleTest tests cases in FNumberOfTests.ql
This commit is contained in:
Jonas Jensen
2020-08-14 12:42:12 +02:00
committed by GitHub

View File

@@ -18,6 +18,9 @@ Expr getTest() {
or
// boost tests; http://www.boost.org/
result.(FunctionCall).getTarget().hasQualifiedName("boost::unit_test", "make_test_case")
or
// googletest tests; https://github.com/google/googletest/
result.(FunctionCall).getTarget().hasQualifiedName("testing::internal", "MakeAndRegisterTestInfo")
}
from File f, int n