| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/google/ |
| H A D | upgrade-googletest-case.cpp | 134 namespace testing { namespace 190 using MyTest = testing::Test; in setUpTearDownCallAndReference() 250 namespace testing { namespace 260 testing::TestInfo t; in FuncInfo() 367 namespace testing { namespace 586 namespace testing { namespace 603 testing::UnitTest t; in FuncUnitTest() 787 testing::TestCase Case; in TestCaseInTemplate() 795 const testing::TestCase *testCaseUses(const testing::TestCase &Case) { in testCaseUses() 823 testing::TestCase Case; [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/ |
| H A D | gtest-spi.h | 43 namespace testing { 149 ::testing::TestPartResultArray gtest_failures;\ 154 ::testing::ScopedFakeTestPartResultReporter:: \ 158 } while (::testing::internal::AlwaysFalse()) 166 ::testing::TestPartResultArray gtest_failures;\ 171 ::testing::ScopedFakeTestPartResultReporter:: \ 175 } while (::testing::internal::AlwaysFalse()) 211 ::testing::TestPartResultArray gtest_failures;\ 221 } while (::testing::internal::AlwaysFalse()) 225 ::testing::TestPartResultArray gtest_failures;\ [all …]
|
| H A D | gtest-typed-test.h | 50 class FooTest : public testing::Test { 61 typedef testing::Types<char, int, unsigned int> MyTypes; 128 class FooTest : public testing::Test { 162 typedef testing::Types<char, int, unsigned int> MyTypes; 195 typedef ::testing::internal::TypeList<Types>::type GTEST_TYPE_PARAMS_( \ 197 typedef ::testing::internal::NameGeneratorSelector<__VA_ARGS__>::type \ 230 static_assert(::testing::internal::TypedTestCaseIsDeprecated(), ""); \ 265 static ::testing::internal::TypedTestSuitePState \ 271 static_assert(::testing::internal::TypedTestCase_P_IsDeprecated(), ""); \ 321 ::testing::internal::TypeList<Types>::type>()) [all …]
|
| H A D | gtest-param-test.h | 60 class FooTest : public ::testing::TestWithParam<const char*> { 162 class BaseTest : public ::testing::Test { 167 class DerivedTest : public BaseTest, public ::testing::WithParamInterface<int> { 189 namespace testing { 466 static ::testing::internal::ParamGenerator<test_suite_name::ParamType> \ 471 const ::testing::TestParamInfo<test_suite_name::ParamType>& info) { \ 472 if (::testing::internal::AlwaysFalse()) { \ 473 ::testing::internal::TestNotEmpty(GTEST_EXPAND_(GTEST_GET_SECOND_( \ 475 ::testing::internal::DefaultParamName<test_suite_name::ParamType>, \ 483 ::testing::internal::DefaultParamName<test_suite_name::ParamType>, \ [all …]
|
| H A D | gtest_pred_impl.h | 45 namespace testing { 81 if (const ::testing::AssertionResult gtest_ar = (expression)) \ 100 << e1 << " evaluates to " << ::testing::PrintToString(v1); in AssertPred1Helper() 112 GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, \ 147 << e2 << " evaluates to " << ::testing::PrintToString(v2); in AssertPred2Helper() 159 GTEST_ASSERT_(::testing::AssertPred2Helper(#pred, \ 200 << e3 << " evaluates to " << ::testing::PrintToString(v3); in AssertPred3Helper() 212 GTEST_ASSERT_(::testing::AssertPred3Helper(#pred, \ 259 << e4 << " evaluates to " << ::testing::PrintToString(v4); in AssertPred4Helper() 271 GTEST_ASSERT_(::testing::AssertPred4Helper(#pred, \ [all …]
|
| /llvm-project-15.0.7/llvm/unittests/DebugInfo/Symbolizer/ |
| H A D | MarkupTest.cpp | 24 using namespace testing; 39 EXPECT_THAT(Parser.nextNode(), testing::Optional(isNode("text"))); in TEST() 44 EXPECT_THAT(Parser.nextNode(), testing::Optional(isNode("kept"))); in TEST() 56 EXPECT_THAT(Parser.nextNode(), testing::Optional(isNode("{{{"))); in TEST() 127 EXPECT_THAT(Parser.nextNode(), testing::Optional(isNode("a"))); in TEST() 129 EXPECT_THAT(Parser.nextNode(), testing::Optional(isNode("c"))); in TEST() 131 EXPECT_THAT(Parser.nextNode(), testing::Optional(isNode("e"))); in TEST() 141 EXPECT_THAT(Parser.nextNode(), testing::Optional(isNode("A"))); in TEST() 151 testing::Optional( in TEST() 183 testing::Optional( in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/ |
| H A D | gmock-generated-function-mockers.h | 52 namespace testing { 148 ::testing::MockSpec<__VA_ARGS__> \ 174 ::testing::MockSpec<__VA_ARGS__> \ 202 ::testing::MockSpec<__VA_ARGS__> \ 234 ::testing::MockSpec<__VA_ARGS__> \ 270 ::testing::MockSpec<__VA_ARGS__> \ 310 ::testing::MockSpec<__VA_ARGS__> \ 354 ::testing::MockSpec<__VA_ARGS__> \ 401 ::testing::MockSpec<__VA_ARGS__> \ 452 ::testing::MockSpec<__VA_ARGS__> \ [all …]
|
| H A D | gmock-nice-strict.h | 71 namespace testing { 77 ::testing::Mock::AllowUninterestingCalls( in NiceMock() 90 ::testing::Mock::AllowUninterestingCalls( in NiceMock() 103 ::testing::Mock::UnregisterCallReaction( in ~NiceMock() 115 ::testing::Mock::WarnUninterestingCalls( in NaggyMock() 128 ::testing::Mock::WarnUninterestingCalls( in NaggyMock() 136 ::testing::Mock::WarnUninterestingCalls( in NaggyMock() 141 ::testing::Mock::UnregisterCallReaction( in ~NaggyMock() 153 ::testing::Mock::FailUninterestingCalls( in StrictMock() 166 ::testing::Mock::FailUninterestingCalls( in StrictMock() [all …]
|
| H A D | gmock-generated-matchers.h | 297 return ::testing::Matcher<arg_type>(\ 347 return ::testing::Matcher<arg_type>(\ 401 return ::testing::Matcher<arg_type>(\ 462 return ::testing::Matcher<arg_type>(\ 528 return ::testing::Matcher<arg_type>(\ 602 return ::testing::Matcher<arg_type>(\ 679 return ::testing::Matcher<arg_type>(\ 763 return ::testing::Matcher<arg_type>(\ 852 return ::testing::Matcher<arg_type>(\ 948 return ::testing::Matcher<arg_type>(\ [all …]
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | CommentParser.cpp | 83 return ::testing::AssertionFailure() in HasChildCount() 87 return ::testing::AssertionSuccess(); in HasChildCount() 98 return ::testing::AssertionFailure() in GetChildAt() 109 return ::testing::AssertionFailure() in GetChildAt() 113 return ::testing::AssertionSuccess(); in GetChildAt() 126 return ::testing::AssertionFailure() in HasTextAt() 131 return ::testing::AssertionFailure() in HasTextAt() 134 return ::testing::AssertionSuccess(); in HasTextAt() 147 return ::testing::AssertionFailure() in HasTextWithNewlineAt() 155 return ::testing::AssertionSuccess(); in HasTextWithNewlineAt() [all …]
|
| H A D | ASTImporterVisibilityTest.cpp | 186 ::testing::Combine( 198 ::testing::Combine( 203 ::testing::Combine( 403 ::testing::Combine( 417 ::testing::Combine( 431 ::testing::Combine( 440 ::testing::Combine( 449 ::testing::Combine( 458 ::testing::Combine( 486 ::testing::Combine( [all …]
|
| /llvm-project-15.0.7/third-party/benchmark/test/ |
| H A D | benchmark_gtest.cc | 18 EXPECT_THAT(dst, testing::ElementsAre(1, 2)); in TEST() 24 EXPECT_THAT(dst, testing::ElementsAre(1, 2)); in TEST() 30 EXPECT_THAT(dst, testing::ElementsAre(5, 8, 15)); in TEST() 36 EXPECT_THAT(dst, testing::ElementsAre(5, 8, 15)); in TEST() 42 EXPECT_THAT(dst, testing::ElementsAre(1, 8, 64, 127)); in TEST() 63 EXPECT_THAT(dst, testing::ElementsAre(-8, -4, -2, -1)); in TEST() 94 EXPECT_THAT(dst, testing::ElementsAre(0)); in TEST() 100 EXPECT_THAT(dst, testing::ElementsAre(0, 1, 2)); in TEST() 133 EXPECT_THAT(dst, testing::ElementsAre(1, 2, 4, 8)); in TEST() 143 testing::UnorderedElementsAre(testing::Pair("foo", "bar"), in TEST() [all …]
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTest.h | 128 return testing::AssertionFailure() 133 return testing::AssertionFailure() 136 return testing::AssertionFailure() 139 return testing::AssertionSuccess(); 143 testing::AssertionResult 154 return testing::AssertionSuccess(); in matchesConditionally() 158 testing::AssertionResult 165 testing::AssertionResult 194 testing::AssertionResult 247 return testing::AssertionSuccess(); in matchesConditionallyWithCuda() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Expression/ |
| H A D | CppModuleConfigurationTest.cpp | 21 struct CppModuleConfigurationTest : public testing::Test { 73 testing::ElementsAre(libcpp, ResourceInc(), usr)); in TEST_F() 109 testing::ElementsAre(libcpp, ResourceInc(), usr)); in TEST_F() 125 testing::ElementsAre(libcpp, ResourceInc(), usr)); in TEST_F() 143 testing::ElementsAre(libcpp, ResourceInc(), usr)); in TEST_F() 184 testing::ElementsAre(libcpp, ResourceInc(), usr)); in TEST_F() 230 EXPECT_THAT(config.GetIncludeDirs(), testing::ElementsAre()); in TEST_F() 243 EXPECT_THAT(config.GetIncludeDirs(), testing::ElementsAre()); in TEST_F() 258 EXPECT_THAT(config.GetIncludeDirs(), testing::ElementsAre()); in TEST_F() 279 EXPECT_THAT(config.GetIncludeDirs(), testing::ElementsAre()); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/ |
| H A D | gtest-death-test-internal.h | 49 namespace testing { 173 ::testing::internal::RE regex) { in MakeDeathTestMatcher() 202 ::testing::internal::FormatFileLocation(__FILE__, __LINE__).c_str(), \ 205 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \ 207 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \ 220 if (::testing::internal::AlwaysTrue()) { \ 247 : fail(::testing::internal::DeathTest::LastMessage()) 258 if (::testing::internal::AlwaysTrue()) { \ 260 } else if (!::testing::internal::AlwaysTrue()) { \ 261 ::testing::internal::MakeDeathTestMatcher(regex_or_matcher); \ [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Utility/ |
| H A D | RangeMapTest.cpp | 38 EXPECT_THAT(V, testing::ElementsAre(Entry(0, 20))); in TEST() 99 static testing::Matcher<const EntryT *> EntryIs(uint32_t ID) { in EntryIs() 100 return testing::Pointee(testing::Field(&EntryT::data, ID)); in EntryIs() 192 EXPECT_THAT(FindEntryIndexes(0, Map), testing::ElementsAre(10)); in TEST() 193 EXPECT_THAT(FindEntryIndexes(9, Map), testing::ElementsAre(10)); in TEST() 194 EXPECT_THAT(FindEntryIndexes(10, Map), testing::ElementsAre(11)); in TEST() 195 EXPECT_THAT(FindEntryIndexes(19, Map), testing::ElementsAre(11)); in TEST() 198 EXPECT_THAT(FindEntryIndexes(30, Map), testing::ElementsAre()); in TEST() 208 EXPECT_THAT(FindEntryIndexes(0, Map), testing::ElementsAre(10)); in TEST() 209 EXPECT_THAT(FindEntryIndexes(9, Map), testing::ElementsAre(10)); in TEST() [all …]
|
| H A D | StringExtractorGDBRemoteTest.cpp | 113 ::testing::Pair(100, StringExtractorGDBRemote::AllThreads)); in TEST() 116 EXPECT_THAT(ex.GetPidTid(100).value(), ::testing::Pair(100, 0x1234ULL)); in TEST() 120 ::testing::Pair(100, 0x123456789ABCDEF0ULL)); in TEST() 126 ::testing::Pair(StringExtractorGDBRemote::AllProcesses, in TEST() 135 ::testing::Pair(0x123456789ABCDEF0ULL, in TEST() 140 ::testing::Pair(StringExtractorGDBRemote::AllProcesses, in TEST() 147 ::testing::Pair(StringExtractorGDBRemote::AllProcesses, in TEST() 156 ::testing::Pair(0x1234ULL, 0x123456789ABCDEF0ULL)); in TEST() 160 ::testing::Pair(0x123456789ABCDEF0ULL, in TEST() 165 ::testing::Pair(0x123456789ABCDEF0ULL, 0x1234ULL)); in TEST() [all …]
|
| H A D | SharedClusterTest.cpp | 35 ASSERT_THAT(Queue, testing::IsEmpty()); in TEST() 39 ASSERT_THAT(Queue, testing::IsEmpty()); in TEST() 44 ASSERT_THAT(Queue, testing::IsEmpty()); in TEST() 50 ASSERT_THAT(Queue, testing::IsEmpty()); in TEST() 53 ASSERT_THAT(Queue, testing::IsEmpty()); in TEST() 55 ASSERT_THAT(Queue, testing::IsEmpty()); in TEST() 57 ASSERT_THAT(Queue, testing::ElementsAre(1, 2)); in TEST()
|
| /llvm-project-15.0.7/llvm/include/llvm/Testing/Support/ |
| H A D | Error.h | 33 : public testing::MatcherInterface<const ExpectedHolder<T> &> { 35 explicit ValueMatchesMono(const testing::Matcher<T> &Matcher) in ValueMatchesMono() 66 testing::Matcher<T> Matcher; 75 operator testing::Matcher<const ExpectedHolder<T> &>() const { 129 Optional<testing::Matcher<InfoT &>> Matcher; 133 : public testing::MatcherInterface<const ErrorHolder &> { 136 testing::Matcher<std::vector<std::string>> Matcher) in ErrorMessageMatches() 159 testing::Matcher<std::vector<std::string>> Matcher; 198 testing::Matcher<const detail::ErrorHolder &> Failed() { in Failed() 203 testing::Matcher<const detail::ErrorHolder &> Failed(M Matcher) { in Failed() [all …]
|
| /llvm-project-15.0.7/libc/utils/UnitTest/ |
| H A D | FPMatcher.h | 21 namespace testing { 27 template <typename T, __llvm_libc::testing::TestCondition Condition> 28 class FPMatcher : public __llvm_libc::testing::Matcher<T> { 31 static_assert(Condition == __llvm_libc::testing::Cond_EQ || 32 Condition == __llvm_libc::testing::Cond_NE, 44 if (Condition == __llvm_libc::testing::Cond_EQ) in match() 61 template <__llvm_libc::testing::TestCondition C, typename T> 82 __llvm_libc::fputil::testing::getMatcher<__llvm_libc::testing::Cond_EQ>( \ 88 __llvm_libc::fputil::testing::getMatcher<__llvm_libc::testing::Cond_EQ>( \ 94 __llvm_libc::fputil::testing::getMatcher<__llvm_libc::testing::Cond_NE>( \ [all …]
|
| /llvm-project-15.0.7/flang/unittests/Runtime/ |
| H A D | Stop.cpp | 23 EXPECT_EXIT(RTNAME(StopStatement)(), testing::ExitedWithCode(EXIT_SUCCESS), in TEST() 31 RTNAME(StopStatement)(), testing::ExitedWithCode(EXIT_SUCCESS), ""); in TEST() 38 testing::ExitedWithCode(EXIT_SUCCESS), "Fortran STOP: bye bye"); in TEST() 42 testing::ExitedWithCode(EXIT_SUCCESS), ""); in TEST() 46 testing::ExitedWithCode(EXIT_FAILURE), "Fortran ERROR STOP: bye bye"); in TEST() 50 testing::ExitedWithCode(EXIT_FAILURE), ""); in TEST() 59 testing::ExitedWithCode(EXIT_SUCCESS), "bye bye"); in TEST() 63 testing::ExitedWithCode(EXIT_SUCCESS), ""); in TEST() 67 testing::ExitedWithCode(EXIT_FAILURE), "Fortran ERROR STOP: bye bye"); in TEST() 71 testing::ExitedWithCode(EXIT_FAILURE), ""); in TEST() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Target/ |
| H A D | MemoryTagMapTest.cpp | 44 EXPECT_THAT(tag_map.GetTags(0, 16), ::testing::ContainerEq(TagsVec{0})); in TEST() 46 EXPECT_THAT(tag_map.GetTags(0, 32), ::testing::ContainerEq(TagsVec{0, 1})); in TEST() 50 ::testing::ContainerEq(TagsVec{0, 1, llvm::None})); in TEST() 53 ::testing::ContainerEq(TagsVec{1, llvm::None})); in TEST() 56 EXPECT_THAT(tag_map.GetTags(32, 16), ::testing::ContainerEq(TagsVec{})); in TEST() 61 EXPECT_THAT(tag_map.GetTags(8, 8), ::testing::ContainerEq(TagsVec{0})); in TEST() 63 EXPECT_THAT(tag_map.GetTags(30, 2), ::testing::ContainerEq(TagsVec{1})); in TEST() 68 ::testing::ContainerEq(TagsVec{1, llvm::None})); in TEST() 76 ::testing::ContainerEq(TagsVec{llvm::None, 3})); in TEST() 80 ::testing::ContainerEq(TagsVec{1, llvm::None, 3})); in TEST()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | CombinationGeneratorTest.cpp | 44 ASSERT_THAT(Variants, ::testing::SizeIs(NumVariants)); in TEST() 45 ASSERT_THAT(Variants, ::testing::ContainerEq(ExpectedVariants)); in TEST() 63 ASSERT_THAT(Variants, ::testing::SizeIs(NumVariants)); in TEST() 64 ASSERT_THAT(Variants, ::testing::ContainerEq(ExpectedVariants)); in TEST() 84 ASSERT_THAT(Variants, ::testing::SizeIs(NumVariants)); in TEST() 85 ASSERT_THAT(Variants, ::testing::ContainerEq(ExpectedVariants)); in TEST() 103 ASSERT_THAT(Variants, ::testing::SizeIs(NumVariants)); in TEST() 122 ASSERT_THAT(Variants, ::testing::SizeIs(NumVariants)); in TEST() 141 ASSERT_THAT(Variants, ::testing::SizeIs(NumVariants)); in TEST() 159 ASSERT_THAT(Variants, ::testing::SizeIs(NumVariants)); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | SarifTest.cpp | 43 class SarifDocumentWriterTest : public ::testing::Test { 110 ASSERT_THAT(Runs, testing::NotNull()); in TEST_F() 118 ASSERT_THAT(driver, testing::NotNull()); in TEST_F() 144 auto Matcher = ::testing::AnyOf( in TEST_F() 145 ::testing::HasSubstr("create a run first"), in TEST_F() 170 ASSERT_THAT(Doc.get("$schema"), ::testing::NotNull()); in TEST_F() 171 ASSERT_THAT(Doc.get("version"), ::testing::NotNull()); in TEST_F() 175 ASSERT_THAT(Runs, ::testing::NotNull()); in TEST_F() 180 ASSERT_THAT(TheRun->get("tool"), ::testing::NotNull()); in TEST_F() 222 ASSERT_THAT(Output, ::testing::StrEq(ExpectedOutput)); in TEST_F() [all …]
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/unittests/ |
| H A D | CodeGenTest.cpp | 14 using testing::AllOf; 15 using testing::AnyOf; 16 using testing::ElementsAre; 17 using testing::Ge; 18 using testing::Gt; 19 using testing::Le; 20 using testing::Lt;
|