Lines Matching refs:test_suite
434 static bool TestSuitePassed(const TestSuite* test_suite) { in TestSuitePassed() argument
435 return test_suite->should_run() && test_suite->Passed(); in TestSuitePassed()
439 static bool TestSuiteFailed(const TestSuite* test_suite) { in TestSuiteFailed() argument
440 return test_suite->should_run() && test_suite->Failed(); in TestSuiteFailed()
445 static bool ShouldRunTestSuite(const TestSuite* test_suite) { in ShouldRunTestSuite() argument
446 return test_suite->should_run(); in ShouldRunTestSuite()
507 MarkAsIgnored::MarkAsIgnored(const char* test_suite) { in MarkAsIgnored() argument
508 GetIgnoredParameterizedTestSuites()->insert(test_suite); in MarkAsIgnored()
2506 const TestSuite* const test_suite = impl->current_test_suite(); in HasSameFixtureClass() local
2509 const TestInfo* const first_test_info = test_suite->test_info_list()[0]; in HasSameFixtureClass()
3355 static void PrintTestName(const char* test_suite, const char* test) { in PrintTestName() argument
3356 printf("%s.%s", test_suite, test); in PrintTestName()
3367 void OnTestSuiteStart(const TestSuite& test_suite) override;
3378 void OnTestSuiteEnd(const TestSuite& test_suite) override;
3450 const TestSuite& test_suite) { in OnTestSuiteStart() argument
3452 FormatCountableNoun(test_suite.test_to_run_count(), "test", "tests"); in OnTestSuiteStart()
3454 printf("%s from %s", counts.c_str(), test_suite.name()); in OnTestSuiteStart()
3455 if (test_suite.type_param() == nullptr) { in OnTestSuiteStart()
3458 printf(", where %s = %s\n", kTypeParamLabel, test_suite.type_param()); in OnTestSuiteStart()
3526 void PrettyUnitTestResultPrinter::OnTestSuiteEnd(const TestSuite& test_suite) { in OnTestSuiteEnd() argument
3530 FormatCountableNoun(test_suite.test_to_run_count(), "test", "tests"); in OnTestSuiteEnd()
3532 printf("%s from %s (%s ms total)\n\n", counts.c_str(), test_suite.name(), in OnTestSuiteEnd()
3533 internal::StreamableToString(test_suite.elapsed_time()).c_str()); in OnTestSuiteEnd()
3552 const TestSuite& test_suite = *unit_test.GetTestSuite(i); in PrintFailedTests() local
3553 if (!test_suite.should_run() || (test_suite.failed_test_count() == 0)) { in PrintFailedTests()
3556 for (int j = 0; j < test_suite.total_test_count(); ++j) { in PrintFailedTests()
3557 const TestInfo& test_info = *test_suite.GetTestInfo(j); in PrintFailedTests()
3562 printf("%s.%s", test_suite.name(), test_info.name()); in PrintFailedTests()
3577 const TestSuite& test_suite = *unit_test.GetTestSuite(i); in PrintFailedTestSuites() local
3578 if (!test_suite.should_run()) { in PrintFailedTestSuites()
3581 if (test_suite.ad_hoc_test_result().Failed()) { in PrintFailedTestSuites()
3583 printf("%s: SetUpTestSuite or TearDownTestSuite\n", test_suite.name()); in PrintFailedTestSuites()
3601 const TestSuite& test_suite = *unit_test.GetTestSuite(i); in PrintSkippedTests() local
3602 if (!test_suite.should_run() || (test_suite.skipped_test_count() == 0)) { in PrintSkippedTests()
3605 for (int j = 0; j < test_suite.total_test_count(); ++j) { in PrintSkippedTests()
3606 const TestInfo& test_info = *test_suite.GetTestInfo(j); in PrintSkippedTests()
3611 printf("%s.%s", test_suite.name(), test_info.name()); in PrintSkippedTests()
3663 static void PrintTestName(const char* test_suite, const char* test) { in PrintTestName() argument
3664 printf("%s.%s", test_suite, test); in PrintTestName()
3967 const TestSuite& test_suite);
4317 const TestSuite& test_suite) { in PrintXmlTestSuite() argument
4320 OutputXmlAttribute(stream, kTestsuite, "name", test_suite.name()); in PrintXmlTestSuite()
4322 StreamableToString(test_suite.reportable_test_count())); in PrintXmlTestSuite()
4325 StreamableToString(test_suite.failed_test_count())); in PrintXmlTestSuite()
4328 StreamableToString(test_suite.reportable_disabled_test_count())); in PrintXmlTestSuite()
4330 StreamableToString(test_suite.skipped_test_count())); in PrintXmlTestSuite()
4335 FormatTimeInMillisAsSeconds(test_suite.elapsed_time())); in PrintXmlTestSuite()
4338 FormatEpochTimeInMillisAsIso8601(test_suite.start_timestamp())); in PrintXmlTestSuite()
4339 *stream << TestPropertiesAsXmlAttributes(test_suite.ad_hoc_test_result()); in PrintXmlTestSuite()
4342 for (int i = 0; i < test_suite.total_test_count(); ++i) { in PrintXmlTestSuite()
4343 if (test_suite.GetTestInfo(i)->is_reportable()) in PrintXmlTestSuite()
4344 OutputXmlTestInfo(stream, test_suite.name(), *test_suite.GetTestInfo(i)); in PrintXmlTestSuite()
4402 for (auto test_suite : test_suites) { in PrintXmlTestsList() local
4403 total_tests += test_suite->total_test_count(); in PrintXmlTestsList()
4410 for (auto test_suite : test_suites) { in PrintXmlTestsList() local
4411 PrintXmlTestSuite(stream, *test_suite); in PrintXmlTestsList()
4496 const TestSuite& test_suite);
4755 std::ostream* stream, const TestSuite& test_suite) { in PrintJsonTestSuite() argument
4760 OutputJsonKey(stream, kTestsuite, "name", test_suite.name(), kIndent); in PrintJsonTestSuite()
4761 OutputJsonKey(stream, kTestsuite, "tests", test_suite.reportable_test_count(), in PrintJsonTestSuite()
4765 test_suite.failed_test_count(), kIndent); in PrintJsonTestSuite()
4767 test_suite.reportable_disabled_test_count(), kIndent); in PrintJsonTestSuite()
4771 FormatEpochTimeInMillisAsRFC3339(test_suite.start_timestamp()), in PrintJsonTestSuite()
4774 FormatTimeInMillisAsDuration(test_suite.elapsed_time()), in PrintJsonTestSuite()
4776 *stream << TestPropertiesAsJson(test_suite.ad_hoc_test_result(), kIndent) in PrintJsonTestSuite()
4783 for (int i = 0; i < test_suite.total_test_count(); ++i) { in PrintJsonTestSuite()
4784 if (test_suite.GetTestInfo(i)->is_reportable()) { in PrintJsonTestSuite()
4790 OutputJsonTestInfo(stream, test_suite.name(), *test_suite.GetTestInfo(i)); in PrintJsonTestSuite()
4859 for (auto test_suite : test_suites) { in PrintJsonTestList() local
4860 total_tests += test_suite->total_test_count(); in PrintJsonTestList()
5728 bool operator()(const TestSuite* test_suite) const { in operator ()()
5729 return test_suite != nullptr && in operator ()()
5730 strcmp(test_suite->name(), name_.c_str()) == 0; in operator ()()
5754 const auto test_suite = in GetTestSuite() local
5758 if (test_suite != test_suites_.rend()) return *test_suite; in GetTestSuite()
6107 for (auto* test_suite : test_suites_) { in FilterTests() local
6108 const std::string& test_suite_name = test_suite->name(); in FilterTests()
6109 test_suite->set_should_run(false); in FilterTests()
6111 for (size_t j = 0; j < test_suite->test_info_list().size(); j++) { in FilterTests()
6112 TestInfo* const test_info = test_suite->test_info_list()[j]; in FilterTests()
6139 test_suite->set_should_run(test_suite->should_run() || is_selected); in FilterTests()
6172 for (auto* test_suite : test_suites_) { in ListTestsMatchingFilter() local
6175 for (size_t j = 0; j < test_suite->test_info_list().size(); j++) { in ListTestsMatchingFilter()
6176 const TestInfo* const test_info = test_suite->test_info_list()[j]; in ListTestsMatchingFilter()
6180 printf("%s.", test_suite->name()); in ListTestsMatchingFilter()
6181 if (test_suite->type_param() != nullptr) { in ListTestsMatchingFilter()
6185 PrintOnOneLine(test_suite->type_param(), kMaxParamLength); in ListTestsMatchingFilter()
6272 for (auto& test_suite : test_suites_) { in ShuffleTests() local
6273 test_suite->ShuffleTests(random()); in ShuffleTests()