/freebsd/contrib/googletest/googletest/samples/ |
H A D | sample9_unittest.cc | 59 void OnTestStart(const TestInfo& test_info) override { in OnTestStart() argument 60 fprintf(stdout, "*** Test %s.%s starting.\n", test_info.test_suite_name(), in OnTestStart() 61 test_info.name()); in OnTestStart() 75 void OnTestEnd(const TestInfo& test_info) override { in OnTestEnd() argument 76 fprintf(stdout, "*** Test %s.%s ending.\n", test_info.test_suite_name(), in OnTestEnd() 77 test_info.name()); in OnTestEnd() 134 const TestInfo& test_info = *test_suite.GetTestInfo(j); in main() local 137 if (test_info.result()->Failed() && in main() 138 strcmp(test_info.name(), "Fails") != 0) { in main()
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-failfast-unittest_.cc | 129 void OnTestStart(const ::testing::TestInfo& test_info) override { in OnTestStart() argument 130 printf("We are in OnTestStart of %s.%s.\n", test_info.test_suite_name(), in OnTestStart() 131 test_info.name()); in OnTestStart() 140 void OnTestEnd(const ::testing::TestInfo& test_info) override { in OnTestEnd() argument 141 printf("We are in OnTestEnd of %s.%s.\n", test_info.test_suite_name(), in OnTestEnd() 142 test_info.name()); in OnTestEnd()
|
H A D | googletest-param-test-test.cc | 839 const ::testing::TestInfo* const test_info = in TEST_P() local 842 EXPECT_STREQ("ZeroToFiveSequence/NamingTest", test_info->test_suite_name()); in TEST_P() 846 EXPECT_STREQ(index_stream.GetString().c_str(), test_info->name()); in TEST_P() 848 EXPECT_EQ(::testing::PrintToString(GetParam()), test_info->value_param()); in TEST_P() 860 const ::testing::TestInfo* const test_info = in TEST_P() local 863 EXPECT_STREQ("FortyTwo/MacroNamingTest", test_info->test_suite_name()); in TEST_P() 864 EXPECT_STREQ("FooSomeTestName/0", test_info->name()); in TEST_P() 874 const ::testing::TestInfo* const test_info = in TEST_F() local 877 EXPECT_STREQ("MacroNamingTestNonParametrized", test_info->test_suite_name()); in TEST_F() 878 EXPECT_STREQ("FooSomeTestName", test_info->name()); in TEST_F() [all …]
|
H A D | googletest-shuffle-test_.cc | 82 void OnTestStart(const TestInfo& test_info) override { in OnTestStart() argument 83 printf("%s.%s\n", test_info.test_suite_name(), test_info.name()); in OnTestStart()
|
H A D | gtest-unittest-api_test.cc | 211 const TestInfo* const test_info = test_suite->GetTestInfo(0); in TEST() local 212 EXPECT_STREQ("Dummy2", test_info->name()); in TEST() 213 EXPECT_STREQ("DISABLED_Test", test_info->test_suite_name()); in TEST() 214 EXPECT_TRUE(IsNull(test_info->value_param())); in TEST() 215 EXPECT_TRUE(IsNull(test_info->type_param())); in TEST() 216 EXPECT_FALSE(test_info->should_run()); in TEST()
|
H A D | gtest_unittest.cc | 2019 const TestInfo* test_info = UnitTest::GetInstance()->current_test_info(); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest() local 2020 ASSERT_TRUE(test_info != nullptr); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest() 2021 ExpectNonFatalFailureRecordingPropertyWithReservedKey(*test_info->result(), in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest() 5266 const TestInfo* const test_info = test_suite->GetTestInfo(i); in GetTestInfo() local 5267 if (strcmp(test_name, test_info->name()) == 0) return test_info; in GetTestInfo() 5272 static const TestResult* GetTestResult(const TestInfo* test_info) { in GetTestResult() argument 5273 return test_info->result(); in GetTestResult() 5279 const TestInfo* const test_info = GetTestInfo("Names"); in TEST_F() local 5281 ASSERT_STREQ("TestInfoTest", test_info->test_suite_name()); in TEST_F() 5282 ASSERT_STREQ("Names", test_info->name()); in TEST_F() [all …]
|
/freebsd/sys/tests/ |
H A D | ktest.c | 97 struct ktest_module *mod, const struct ktest_test_info *test_info) in dump_mod_test() argument 105 nlattr_add_string(nw, KTEST_ATTR_TEST_NAME, test_info->name); in dump_mod_test() 106 nlattr_add_string(nw, KTEST_ATTR_TEST_DESCR, test_info->desc); in dump_mod_test() 120 const struct ktest_test_info *test_info = &mod->info->tests[i]; in dump_mod_tests() local 121 if (attrs->test_name != NULL && strcmp(attrs->test_name, test_info->name)) in dump_mod_tests() 123 int error = dump_mod_test(hdr, npt, mod, test_info); in dump_mod_tests() 193 const struct ktest_test_info *test_info = &info->tests[i]; in run_test() local 195 if (!strcmp(attrs.test_name, test_info->name)) { in run_test() 196 test = test_info; in run_test()
|
/freebsd/contrib/googletest/googletest/include/gtest/ |
H A D | gtest.h | 638 static void ClearTestResult(TestInfo* test_info) { in ClearTestResult() argument 639 test_info->result_.Clear(); in ClearTestResult() 774 void AddTestInfo(TestInfo* test_info); 807 static bool TestPassed(const TestInfo* test_info) { in TestPassed() argument 808 return test_info->should_run() && test_info->result()->Passed(); in TestPassed() 812 static bool TestSkipped(const TestInfo* test_info) { in TestSkipped() argument 813 return test_info->should_run() && test_info->result()->Skipped(); in TestSkipped() 817 static bool TestFailed(const TestInfo* test_info) { in TestFailed() argument 818 return test_info->should_run() && test_info->result()->Failed(); in TestFailed() 823 static bool TestReportableDisabled(const TestInfo* test_info) { in TestReportableDisabled() argument [all …]
|
/freebsd/contrib/googletest/googletest/src/ |
H A D | gtest.cc | 2792 TestInfo* const test_info = in MakeAndRegisterTestInfo() local 2795 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info); in MakeAndRegisterTestInfo() 2796 return test_info; in MakeAndRegisterTestInfo() 2985 void TestSuite::AddTestInfo(TestInfo* test_info) { in AddTestInfo() argument 2986 test_info_list_.push_back(test_info); in AddTestInfo() 3354 static void PrintFullTestCommentIfPresent(const TestInfo& test_info) { in PrintFullTestCommentIfPresent() argument 3355 const char* const type_param = test_info.type_param(); in PrintFullTestCommentIfPresent() 3356 const char* const value_param = test_info.value_param(); in PrintFullTestCommentIfPresent() 3391 void OnTestStart(const TestInfo& test_info) override; 3392 void OnTestDisabled(const TestInfo& test_info) override; [all …]
|
H A D | gtest-internal-inl.h | 677 TestInfo* test_info) { in AddTestInfo() argument 693 GetTestSuite(test_info->test_suite_name_, test_info->type_param(), in AddTestInfo() 695 ->AddTestInfo(test_info); in AddTestInfo() 1189 void OnTestStart(const TestInfo& test_info) override { in OnTestStart() argument 1190 SendLn(std::string("event=TestStart&name=") + test_info.name()); in OnTestStart() 1193 void OnTestEnd(const TestInfo& test_info) override { in OnTestEnd() argument 1195 FormatBool((test_info.result())->Passed()) + "&elapsed_time=" + in OnTestEnd() 1196 StreamableToString((test_info.result())->elapsed_time()) + "ms"); in OnTestEnd()
|
/freebsd/contrib/googletest/googlemock/src/ |
H A D | gmock-spec-builders.cc | 697 const TestInfo* const test_info = in RegisterUseByOnCallOrExpectCall() local 699 if (test_info != nullptr) { in RegisterUseByOnCallOrExpectCall() 700 state.first_used_test_suite = test_info->test_suite_name(); in RegisterUseByOnCallOrExpectCall() 701 state.first_used_test = test_info->name(); in RegisterUseByOnCallOrExpectCall()
|
/freebsd/contrib/googletest/googletest/include/gtest/internal/ |
H A D | gtest-param-util.h | 559 for (const std::shared_ptr<TestInfo>& test_info : tests_) { in RegisterTests() local 593 if (!test_info->test_base_name.empty()) { in RegisterTests() 594 test_name.append(test_info->test_base_name).append("/"); in RegisterTests() 603 PrintToString(param).c_str(), test_info->code_location, in RegisterTests() 607 test_info->test_meta_factory->CreateTestFactory(param)); in RegisterTests()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/ |
H A D | rtsan_test_interceptors.cpp | 46 const ::testing::TestInfo *const test_info = in SetUp() local 49 test_info->name() + ".txt"; in SetUp()
|
/freebsd/crypto/openssh/regress/unittests/test_helper/ |
H A D | test_helper.c | 230 test_info(char *s, size_t len) in test_info() function 242 test_info(buf, sizeof(buf)); in siginfo()
|
H A D | fuzz.c | 206 test_info(buf, sizeof(buf)); in siginfo()
|
H A D | test_helper.h | 45 void test_info(char *s, size_t len);
|
/freebsd/crypto/openssl/test/ |
H A D | testutil.h | 409 void test_info(const char *file, int line, const char *desc, ...) 538 # define TEST_info(...) test_info(__FILE__, __LINE__, __VA_ARGS__)
|
/freebsd/crypto/openssl/test/testutil/ |
H A D | driver.c | 30 typedef struct test_info { struct
|
H A D | tests.c | 109 void test_info(const char *file, int line, const char *desc, ...) in test_info() function
|
/freebsd/contrib/googletest/docs/ |
H A D | advanced.md | 1672 const testing::TestInfo* const test_info = 1676 test_info->name(), 1677 test_info->test_suite_name()); 1723 void OnTestStart(const testing::TestInfo& test_info) override { 1725 test_info.test_suite_name(), test_info.name()); 1738 void OnTestEnd(const testing::TestInfo& test_info) override { 1740 test_info.test_suite_name(), test_info.name());
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | testing.md | 995 `virtual void TestEventListener::OnTestStart(const TestInfo& test_info)` 1010 `virtual void TestEventListener::OnTestEnd(const TestInfo& test_info)`
|