diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-04-24 20:27:29 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-04-24 20:27:29 +0000 |
commit | fa2b06c52fa3ffb1909ed8b928e106292609cfcb (patch) | |
tree | 9641a37117afa67d303e37434a6b1810dee190f9 /include | |
parent | f2d0d0e3d56794855d1e9a1f157457b7225e8c88 (diff) | |
download | googletest-fa2b06c52fa3ffb1909ed8b928e106292609cfcb.tar.gz googletest-fa2b06c52fa3ffb1909ed8b928e106292609cfcb.tar.bz2 googletest-fa2b06c52fa3ffb1909ed8b928e106292609cfcb.zip |
Makes --gtest_list_tests honor the test filter (by Jay Campan).
Diffstat (limited to 'include')
-rw-r--r-- | include/gtest/gtest.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/gtest/gtest.h b/include/gtest/gtest.h index 26d76b26..f5437784 100644 --- a/include/gtest/gtest.h +++ b/include/gtest/gtest.h @@ -376,7 +376,12 @@ class TestInfo { // Returns the test comment. const char* comment() const; - // Returns true if this test should run. + // Returns true if this test matches the user-specified filter. + bool matches_filter() const; + + // Returns true if this test should run, that is if the test is not disabled + // (or it is disabled but the also_run_disabled_tests flag has been specified) + // and its full name matches the user-specified filter. // // Google Test allows the user to filter the tests by their full names. // The full name of a test Bar in test case Foo is defined as |