| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Testing/Support/ |
| D | Error.h | 35 explicit ValueMatchesMono(const testing::Matcher<T> &Matcher) in ValueMatchesMono() argument 36 : Matcher(Matcher) {} in ValueMatchesMono() 43 bool result = Matcher.MatchAndExplain(*Holder.Exp, listener); in MatchAndExplain() 48 Matcher.DescribeNegationTo(listener->stream()); in MatchAndExplain() 55 Matcher.DescribeTo(OS); in DescribeTo() 61 Matcher.DescribeNegationTo(OS); in DescribeNegationTo() 66 testing::Matcher<T> Matcher; 72 explicit ValueMatchesPoly(const M &Matcher) : Matcher(Matcher) {} in ValueMatchesPoly() argument 75 operator testing::Matcher<const ExpectedHolder<T> &>() const { 77 new ValueMatchesMono<T>(testing::SafeMatcherCast<T>(Matcher))); [all …]
|
| /third_party/boost/boost/xpressive/detail/core/ |
| D | matchers.hpp | 16 //#include <boost/xpressive/detail/core/matcher/action_matcher.hpp> 17 #include <boost/xpressive/detail/core/matcher/alternate_end_matcher.hpp> 18 #include <boost/xpressive/detail/core/matcher/alternate_matcher.hpp> 19 #include <boost/xpressive/detail/core/matcher/any_matcher.hpp> 20 #include <boost/xpressive/detail/core/matcher/assert_bol_matcher.hpp> 21 #include <boost/xpressive/detail/core/matcher/assert_bos_matcher.hpp> 22 #include <boost/xpressive/detail/core/matcher/assert_eol_matcher.hpp> 23 #include <boost/xpressive/detail/core/matcher/assert_eos_matcher.hpp> 24 #include <boost/xpressive/detail/core/matcher/assert_word_matcher.hpp> 25 #include <boost/xpressive/detail/core/matcher/attr_matcher.hpp> [all …]
|
| /third_party/googletest/googletest/src/ |
| D | gtest-matchers.cc | 32 // This file implements just enough of the matcher interface to allow 33 // EXPECT_DEATH and friends to accept a matcher argument. 43 // Constructs a matcher that matches a const std::string& whose value is 45 Matcher<const std::string&>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string 47 // Constructs a matcher that matches a const std::string& whose value is 49 Matcher<const std::string&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string 53 // Constructs a matcher that matches a std::string whose value is equal to 55 Matcher<std::string>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string 57 // Constructs a matcher that matches a std::string whose value is equal to 59 Matcher<std::string>::Matcher(const char* s) { *this = Eq(std::string(s)); } in Matcher() function in testing::Matcher::string [all …]
|
| /third_party/mesa3d/src/gtest/src/ |
| D | gtest-matchers.cc | 32 // This file implements just enough of the matcher interface to allow 33 // EXPECT_DEATH and friends to accept a matcher argument. 43 // Constructs a matcher that matches a const std::string& whose value is 45 Matcher<const std::string&>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string 47 // Constructs a matcher that matches a const std::string& whose value is 49 Matcher<const std::string&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string 53 // Constructs a matcher that matches a std::string whose value is equal to 55 Matcher<std::string>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string 57 // Constructs a matcher that matches a std::string whose value is equal to 59 Matcher<std::string>::Matcher(const char* s) { *this = Eq(std::string(s)); } in Matcher() function in testing::Matcher::string [all …]
|
| /third_party/libphonenumber/cpp/test/phonenumbers/ |
| D | matcher_test.cc | 43 const MatcherApi& matcher, in ExpectMatched() argument 46 EXPECT_TRUE(matcher.MatchNationalNumber(number, desc, false)) in ExpectMatched() 48 EXPECT_TRUE(matcher.MatchNationalNumber(number, desc, true)) in ExpectMatched() 53 const MatcherApi& matcher, in ExpectInvalid() argument 56 EXPECT_FALSE(matcher.MatchNationalNumber(number, desc, false)) in ExpectInvalid() 58 EXPECT_FALSE(matcher.MatchNationalNumber(number, desc, true)) in ExpectInvalid() 63 const MatcherApi& matcher, in ExpectTooLong() argument 66 EXPECT_FALSE(matcher.MatchNationalNumber(number, desc, false)) in ExpectTooLong() 68 EXPECT_TRUE(matcher.MatchNationalNumber(number, desc, true)) in ExpectTooLong() 76 void CheckMatcherBehavesAsExpected(const MatcherApi& matcher) const { in CheckMatcherBehavesAsExpected() [all …]
|
| D | phonenumbermatcher_test.cc | 107 scoped_ptr<PhoneNumberMatcher> matcher; in DoTestNumberMatchesForLeniency() local 110 matcher.reset(GetMatcherWithLeniency( in DoTestNumberMatchesForLeniency() 112 EXPECT_TRUE(matcher->HasNext()) in DoTestNumberMatchesForLeniency() 115 if (matcher->HasNext()) { in DoTestNumberMatchesForLeniency() 117 matcher->Next(&match); in DoTestNumberMatchesForLeniency() 130 scoped_ptr<PhoneNumberMatcher> matcher; in DoTestNumberNonMatchesForLeniency() local 133 matcher.reset(GetMatcherWithLeniency( in DoTestNumberNonMatchesForLeniency() 135 EXPECT_FALSE(matcher->HasNext()) << "Match found in " << test->ToString() in DoTestNumberNonMatchesForLeniency() 155 PhoneNumberMatcher matcher(phone_util_, sub, RegionCode::NZ(), in AssertEqualRange() local 159 ASSERT_TRUE(matcher.HasNext()); in AssertEqualRange() [all …]
|
| /third_party/mesa3d/src/gtest/include/gtest/ |
| D | gtest-matchers.h | 32 // This file implements just enough of the matcher interface to allow 33 // EXPECT_DEATH and friends to accept a matcher argument. 65 // To implement a matcher Foo for type T, define: 68 // 2. a factory function that creates a Matcher<T> object from a 72 // to write "v" instead of "Eq(v)" where a Matcher is expected, which 74 // ownership management as Matcher objects can now be copied like 78 // used by a matcher to explain why a value matches or doesn't match. 100 // of the match result. A matcher's MatchAndExplain() method can use 115 // matcher. 120 // Describes this matcher to an ostream. The function should print [all …]
|
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
| D | LocaleMatcherTest.java | 82 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 83 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 84 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser() 85 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 90 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 93 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese() 94 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese() 95 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese() 96 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese() 97 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese() [all …]
|
| /third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/internal/ |
| D | MatcherTest.java | 31 private void checkMatcherBehavesAsExpected(MatcherApi matcher) { in checkMatcherBehavesAsExpected() argument 33 // Test if there is no matcher data. in checkMatcherBehavesAsExpected() 34 assertInvalid(matcher, "1", desc); in checkMatcherBehavesAsExpected() 37 assertInvalid(matcher, "91", desc); in checkMatcherBehavesAsExpected() 38 assertInvalid(matcher, "81", desc); in checkMatcherBehavesAsExpected() 39 assertMatched(matcher, "911", desc); in checkMatcherBehavesAsExpected() 40 assertInvalid(matcher, "811", desc); in checkMatcherBehavesAsExpected() 41 assertTooLong(matcher, "9111", desc); in checkMatcherBehavesAsExpected() 42 assertInvalid(matcher, "8111", desc); in checkMatcherBehavesAsExpected() 45 assertMatched(matcher, "2", desc); in checkMatcherBehavesAsExpected() [all …]
|
| /third_party/skia/third_party/externals/tint/src/ |
| D | intrinsic_table.inl | 31 /// Checks whether the given type matches the matcher rules. 39 /// @return a string representation of the matcher. 58 /// Checks whether the given type matches the matcher rules. 66 /// @return a string representation of the matcher. 85 /// Checks whether the given type matches the matcher rules. 93 /// @return a string representation of the matcher. 112 /// Checks whether the given type matches the matcher rules. 120 /// @return a string representation of the matcher. 139 /// Checks whether the given type matches the matcher rules. 147 /// @return a string representation of the matcher. [all …]
|
| /third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
| D | LocaleMatcherTest.java | 79 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 80 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 81 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser() 82 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 87 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 90 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese() 91 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese() 92 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese() 93 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese() 94 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese() [all …]
|
| /third_party/googletest/googletest/include/gtest/ |
| D | gtest-matchers.h | 32 // This file implements just enough of the matcher interface to allow 33 // EXPECT_DEATH and friends to accept a matcher argument. 62 // To implement a matcher Foo for type T, define: 63 // 1. a class FooMatcherMatcher that implements the matcher interface: 70 // 2. a factory function that creates a Matcher<T> object from a 93 // of the match result. A matcher's MatchAndExplain() method can use 108 // matcher. 113 // Describes this matcher to an ostream. The function should print 115 // matcher should have. The subject of the verb phrase is the value 117 // matcher prints "is greater than 7". [all …]
|
| /third_party/googletest/googlemock/include/gmock/ |
| D | gmock-matchers.h | 33 // The MATCHER* family of macros can be used in a namespace scope to 41 // MATCHER(name, description_string) { statements; } 43 // defines a matcher with the given name that executes the statements, 48 // The description string documents what the matcher does, and is used 50 // MATCHER() is usually defined in a header file shared by multiple 53 // case we'll use the sequence of words in the matcher name as the 58 // MATCHER(IsEven, "") { return (arg % 2) == 0; } 77 // matcher name IsEven. 83 // determined by the context in which you use the matcher and is 85 // declaring it (nor can you). This allows the matcher to be [all …]
|
| /third_party/icu/icu4c/source/test/intltest/ |
| D | localematchertest.cpp | 99 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testEmpty() local 100 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty() 102 LocaleMatcher::Result result = matcher.getBestMatchResult("fr", errorCode); in testEmpty() 128 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 130 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics() 132 best = matcher.getBestMatch("en_US", errorCode); in testBasics() 134 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics() 136 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics() 142 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 144 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics() [all …]
|
| /third_party/googletest/googlemock/test/ |
| D | gmock-matchers_test.cc | 140 Matcher<int> GreaterThan(int n) { in GreaterThan() 152 // Returns the description of the given matcher. 154 std::string Describe(const Matcher<T>& m) { in Describe() 158 // Returns the description of the negation of the given matcher. 160 std::string DescribeNegation(const Matcher<T>& m) { in DescribeNegation() 230 // Tests implementing a monomorphic matcher using MatchAndExplain(). 250 Matcher<int> m = MakeMatcher(new NewEvenMatcherImpl); in TEST() 257 // Tests default-constructing a matcher. 259 Matcher<double> m; in TEST() 262 // Tests that Matcher<T> can be constructed from a MatcherInterface<T>*. [all …]
|
| /third_party/node/deps/icu-small/source/i18n/ |
| D | numparse_compositions.cpp | 28 const NumberParseMatcher* matcher = *it; in match() local 31 maybeMore = matcher->match(segment, result, status); in match() 33 // Nothing for this matcher to match; ask for more. in match() 38 bool isFlexible = matcher->isFlexible(); in match() 40 // Match succeeded, and this is a flexible matcher. Re-run it. in match() 42 // Match succeeded, and this is NOT a flexible matcher. Proceed to the next matcher. in match() 44 // Small hack: if there is another matcher coming, do not accept trailing weak chars. in match() 50 // Match failed, and this is a flexible matcher. Try again with the next matcher. in match() 53 // Match failed, and this is NOT a flexible matcher. Exit. in match() 67 for (auto& matcher : *this) { in smokeTest() [all …]
|
| /third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
| D | numparse_compositions.cpp | 27 const NumberParseMatcher* matcher = *it; in match() local 30 maybeMore = matcher->match(segment, result, status); in match() 32 // Nothing for this matcher to match; ask for more. in match() 37 bool isFlexible = matcher->isFlexible(); in match() 39 // Match succeeded, and this is a flexible matcher. Re-run it. in match() 41 // Match succeeded, and this is NOT a flexible matcher. Proceed to the next matcher. in match() 43 // Small hack: if there is another matcher coming, do not accept trailing weak chars. in match() 49 // Match failed, and this is a flexible matcher. Try again with the next matcher. in match() 52 // Match failed, and this is NOT a flexible matcher. Exit. in match() 66 for (auto& matcher : *this) { in smokeTest() [all …]
|
| /third_party/skia/third_party/externals/icu/source/i18n/ |
| D | numparse_compositions.cpp | 28 const NumberParseMatcher* matcher = *it; in match() local 31 maybeMore = matcher->match(segment, result, status); in match() 33 // Nothing for this matcher to match; ask for more. in match() 38 bool isFlexible = matcher->isFlexible(); in match() 40 // Match succeeded, and this is a flexible matcher. Re-run it. in match() 42 // Match succeeded, and this is NOT a flexible matcher. Proceed to the next matcher. in match() 44 // Small hack: if there is another matcher coming, do not accept trailing weak chars. in match() 50 // Match failed, and this is a flexible matcher. Try again with the next matcher. in match() 53 // Match failed, and this is NOT a flexible matcher. Exit. in match() 67 for (auto& matcher : *this) { in smokeTest() [all …]
|
| /third_party/icu/icu4c/source/i18n/ |
| D | numparse_compositions.cpp | 28 const NumberParseMatcher* matcher = *it; in match() local 31 maybeMore = matcher->match(segment, result, status); in match() 33 // Nothing for this matcher to match; ask for more. in match() 38 bool isFlexible = matcher->isFlexible(); in match() 40 // Match succeeded, and this is a flexible matcher. Re-run it. in match() 42 // Match succeeded, and this is NOT a flexible matcher. Proceed to the next matcher. in match() 44 // Small hack: if there is another matcher coming, do not accept trailing weak chars. in match() 50 // Match failed, and this is a flexible matcher. Try again with the next matcher. in match() 53 // Match failed, and this is NOT a flexible matcher. Exit. in match() 67 for (auto& matcher : *this) { in smokeTest() [all …]
|
| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
| D | SeriesMatcher.java | 21 public void addMatcher(NumberParseMatcher matcher) { in addMatcher() argument 26 matchers.add(matcher); in addMatcher() 51 NumberParseMatcher matcher = matchers.get(i); in match() local 54 maybeMore = matcher.match(segment, result); in match() 56 // Nothing for this matcher to match; ask for more. in match() 61 boolean isFlexible = matcher instanceof NumberParseMatcher.Flexible; in match() 63 // Match succeeded, and this is a flexible matcher. Re-run it. in match() 65 // Match succeeded, and this is NOT a flexible matcher. Proceed to the next matcher. in match() 67 … // Small hack: if there is another matcher coming, do not accept trailing weak chars. in match() 73 // Match failed, and this is a flexible matcher. Try again with the next matcher. in match() [all …]
|
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/ |
| D | SeriesMatcher.java | 23 public void addMatcher(NumberParseMatcher matcher) { in addMatcher() argument 28 matchers.add(matcher); in addMatcher() 53 NumberParseMatcher matcher = matchers.get(i); in match() local 56 maybeMore = matcher.match(segment, result); in match() 58 // Nothing for this matcher to match; ask for more. in match() 63 boolean isFlexible = matcher instanceof NumberParseMatcher.Flexible; in match() 65 // Match succeeded, and this is a flexible matcher. Re-run it. in match() 67 // Match succeeded, and this is NOT a flexible matcher. Proceed to the next matcher. in match() 69 … // Small hack: if there is another matcher coming, do not accept trailing weak chars. in match() 75 // Match failed, and this is a flexible matcher. Try again with the next matcher. in match() [all …]
|
| /third_party/googletest/docs/reference/ |
| D | matchers.md | 3 A **matcher** matches a *single* argument. You can use it inside `ON_CALL()` or 8 | `EXPECT_THAT(actual_value, matcher)` | Asserts that `actual_value` matches `matcher`. | 9 | `ASSERT_THAT(actual_value, matcher)` | The same as `EXPECT_THAT(actual_value, matcher)`, except t… 25 Matcher | Description 32 | Matcher | Description | 53 `non_copyable_value` is not changed afterwards, or the meaning of your matcher 56 `IsTrue` and `IsFalse` are useful when you need to use a matcher, or for types 63 | Matcher | Description | 78 | Matcher | Description | 89 | Matcher | Description | [all …]
|
| /third_party/boost/boost/xpressive/detail/static/ |
| D | static.hpp | 110 template<typename Matcher, typename Next> 112 : Matcher 116 BOOST_STATIC_CONSTANT(bool, pure = Matcher::pure && Next::pure); 120 Matcher::width != unknown_width::value && Next::width != unknown_width::value 121 ? Matcher::width + Next::width 125 static_xpression(Matcher const &matcher = Matcher(), Next const &next = Next()) in static_xpression() 126 : Matcher(matcher) in static_xpression() 132 // delegates to the Matcher 136 return this->Matcher::match(state, this->next_); in match() 145 return this->Matcher::match(state, stacked_xpression_cast<Top>(this->next_)); in push_match() [all …]
|
| /third_party/flutter/flutter/packages/flutter_tools/test/src/ |
| D | common.dart | 20 /// A matcher that compares the type of the actual value to the type argument T. 21 // TODO(ianh): Remove this once https://github.com/dart-lang/matcher/issues/98 is fixed 22 Matcher isInstanceOf<T>() => test_package.TypeMatcher<T>(); 87 /// Matcher for functions that throw [ToolExit]. 88 Matcher throwsToolExit({ int exitCode, Pattern message }) { 89 Matcher matcher = isToolExit; 91 matcher = allOf(matcher, (ToolExit e) => e.exitCode == exitCode); 93 matcher = allOf(matcher, (ToolExit e) => e.message.contains(message)); 94 return throwsA(matcher); 97 /// Matcher for [ToolExit]s. [all …]
|
| /third_party/libphonenumber/cpp/src/phonenumbers/ |
| D | regexp_adapter_icu.cc | 132 const scoped_ptr<RegexMatcher> matcher( in Consume() local 133 utf8_regexp_->matcher(*input->Data(), status)); in Consume() 135 ? matcher->lookingAt(input->position(), status) in Consume() 136 : matcher->find(input->position(), status); in Consume() 148 if (group_index > matcher->groupCount()) { in Consume() 152 UnicodeStringToUtf8String(matcher->group(group_index, status)); in Consume() 155 input->set_position(matcher->end(status)); in Consume() 167 const scoped_ptr<RegexMatcher> matcher( in Match() local 168 utf8_regexp_->matcher(*input.Data(), status)); in Match() 170 ? matcher->matches(input.position(), status) in Match() [all …]
|