Lines Matching refs:name
14 // * Neither the name of Google Inc. nor the names of its
173 // A test whose test suite name or test name matches this filter is
177 // A test suite whose name matches this filter is considered a death
178 // test suite and will be run before test suites whose name doesn't
190 // The environment variable name for the test shard index.
192 // The environment variable name for the total number of test shards.
194 // The environment variable name for the test shard status file.
311 "optionally followed by a colon and an output file name or directory. "
316 "executable's name and, if necessary, made unique by adding "
375 "This flag specifies the host name and the port number on which to stream "
513 void InsertSyntheticTestCase(const std::string& name, CodeLocation location,
516 if (ignored.find(name) != ignored.end()) return;
537 "Parameterized test suite " + name +
544 name + ");";
546 std::string full_name = "UninstantiatedParameterizedTestSuite<" + name + ">";
636 // Returns the current application's name, removing directory path if that
665 // Returns the name of the requested output file, or the default if none
705 const char* name = name_str.c_str();
706 const char* const name_begin = name;
707 const char* const name_end = name + name_str.size();
710 const char* name_next = name;
712 while (pattern < pattern_end || name < name_end) {
716 if (name < name_end && *name == *pattern) {
718 ++name;
723 if (name < name_end) {
725 ++name;
731 // and matching zero characters from name. If that fails, restart and
734 name_next = name + 1;
742 name = name_next;
778 // Returns true if and only if name matches at least one of the patterns in
780 bool MatchesName(const std::string& name) const {
781 return exact_match_patterns_.count(name) > 0 ||
783 [&name](const std::string& pattern) {
785 name, pattern.c_str(),
829 // Returns true if and only if test name (this is generated by appending test
830 // suit name and test name via a '.' character) matches the positive filter
837 // Returns true if and only if name matches the positive filter and does not
839 bool MatchesName(const std::string& name) const {
840 return positive_filter_.MatchesName(name) &&
841 !negative_filter_.MatchesName(name);
856 // suite name and the test name.
2305 "disabled", "errors", "failures", "name",
2311 "disabled", "errors", "failures", "name",
2316 "classname", "name", "status", "time",
2322 "classname", "name", "status", "time", "type_param",
2511 const char* const first_test_name = first_test_info->name();
2516 const char* const this_test_name = this_test_info->name();
2528 // Gets the name of the TEST and the name of the TEST_F. Note
2546 // Two fixture classes with the same name appear in two different
2556 << "units and have the same name. You should probably rename one\n"
2750 // test_suite_name: name of the test suite
2751 // name: name of the test
2752 // type_param: the name of the test's type parameter, or NULL if
2764 const char* test_suite_name, const char* name, const char* type_param,
2769 new TestInfo(test_suite_name, name, type_param, value_param,
2784 << "from different namespaces and have the same name. You should\n"
2920 // Creates a TestSuite with the given name.
2924 // a_name: name of the test suite
2925 // a_type_param: the name of the test suite's type parameter, or NULL if
3441 printf("%s from %s", counts.c_str(), test_case.name());
3455 printf("%s from %s", counts.c_str(), test_suite.name());
3467 PrintTestName(test_info.test_suite_name(), test_info.name());
3474 PrintTestName(test_info.test_suite_name(), test_info.name());
3502 PrintTestName(test_info.test_suite_name(), test_info.name());
3522 printf("%s from %s (%s ms total)\n\n", counts.c_str(), test_case.name(),
3533 printf("%s from %s (%s ms total)\n\n", counts.c_str(), test_suite.name(),
3563 printf("%s.%s", test_suite.name(), test_info.name());
3584 printf("%s: SetUpTestSuite or TearDownTestSuite\n", test_suite.name());
3612 printf("%s.%s", test_suite.name(), test_info.name());
3715 PrintTestName(test_info.test_suite_name(), test_info.name());
3945 const std::string& name,
4092 // <testsuites name="AllTests"> <-- corresponds to a UnitTest object
4093 // <testsuite name="testcase-name"> <-- corresponds to a TestSuite object
4094 // <testcase name="test-name"> <-- corresponds to a TestInfo object
4174 const std::string& name, const std::string& value) {
4178 GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) !=
4180 << "Attribute " << name << " is not allowed for element <" << element_name
4183 *stream << " " << name << "=\"" << EscapeXmlAttribute(value) << "\"";
4191 OutputXmlAttribute(stream, "testsuite", "name", "NonTestSuiteFailure");
4206 OutputXmlAttribute(stream, "testcase", "name", "");
4235 OutputXmlAttribute(stream, kTestsuite, "name", test_info.name());
4321 OutputXmlAttribute(stream, kTestsuite, "name", test_suite.name());
4345 OutputXmlTestInfo(stream, test_suite.name(), *test_suite.GetTestInfo(i));
4378 OutputXmlAttribute(stream, kTestsuites, "name", "AllTests");
4408 OutputXmlAttribute(stream, kTestsuites, "name", "AllTests");
4443 *stream << " name=\"" << EscapeXmlAttribute(property.key()) << "\"";
4473 const std::string& name, const std::string& value,
4477 const std::string& name, int value,
4604 const std::string& name,
4611 GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) !=
4613 << "Key \"" << name << "\" is not allowed for value \"" << element_name
4616 *stream << indent << "\"" << name << "\": \"" << EscapeJson(value) << "\"";
4622 const std::string& name, int value, const std::string& indent, bool comma) {
4626 GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) !=
4628 << "Key \"" << name << "\" is not allowed for value \"" << element_name
4631 *stream << indent << "\"" << name << "\": " << StreamableToString(value);
4640 OutputJsonKey(stream, "testsuite", "name", "NonTestSuiteFailure", Indent(6));
4658 OutputJsonKey(stream, "testcase", "name", "", Indent(10));
4686 OutputJsonKey(stream, kTestsuite, "name", test_info.name(), kIndent);
4761 OutputJsonKey(stream, kTestsuite, "name", test_suite.name(), kIndent);
4791 OutputJsonTestInfo(stream, test_suite.name(), *test_suite.GetTestInfo(i));
4825 OutputJsonKey(stream, kTestsuites, "name", "AllTests", kIndent);
4865 OutputJsonKey(stream, kTestsuites, "name", "AllTests", kIndent);
4934 // the given host name.
5715 // A predicate that checks the name of a TestSuite against a known
5726 explicit TestSuiteNameIs(const std::string& name) : name_(name) {}
5728 // Returns true if and only if the name of test_suite matches name_.
5731 strcmp(test_suite->name(), name_.c_str()) == 0;
5738 // Finds and returns a TestSuite with the given name. If one doesn't
5745 // test_suite_name: name of the test suite
5746 // type_param: the name of the test suite's type parameter, or NULL if
5754 // Can we find a TestSuite with the given name?
6084 // Compares the name of each test with the user-specified filter to
6109 const std::string& test_suite_name = test_suite->name();
6114 const std::string test_name(test_info->name());
6115 // A test is disabled if test suite name or test name matches
6181 printf("%s.", test_suite->name());
6190 printf(" %s", test_info->name());
6350 // Skips the flag name.
6359 // flag name, or if def_optional is false, there must be a '=' after
6360 // the flag name.
6487 " List the names of all tests instead of running them. The name of\n"
6492 " Run only the tests whose name matches one of the positive patterns "
6532 " file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n"