Makes --gtest_list_tests honor the test filter (by Jay Campan).

This commit is contained in:
zhanyong.wan
2009-04-24 20:27:29 +00:00
parent f2d0d0e3d5
commit fa2b06c52f
5 changed files with 86 additions and 41 deletions

View File

@@ -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