Home
last modified time | relevance | path

Searched full:matcher (Results 1 – 25 of 766) sorted by relevance

12345678910>>...31

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Testing/Support/
DError.h35 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/
Dmatchers.hpp16 //#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/boringssl/src/third_party/googletest/src/
Dgtest-matchers.cc32 // 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/
Dmatcher_test.cc43 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 …]
Dphonenumbermatcher_test.cc107 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/boringssl/src/third_party/googletest/include/gtest/
Dgtest-matchers.h32 // This file implements just enough of the matcher interface to allow
33 // EXPECT_DEATH and friends to accept a matcher argument.
64 // To implement a matcher Foo for type T, define:
67 // 2. a factory function that creates a Matcher<T> object from a
71 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
73 // ownership management as Matcher objects can now be copied like
77 // used by a matcher to explain why a value matches or doesn't match.
99 // the match result. A matcher's MatchAndExplain() method can use
114 // matcher.
119 // Describes this matcher to an ostream. The function should print
[all …]
/third_party/googletest/googlemock/include/gmock/internal/
Dgmock-generated-internal-utils.h50 class Matcher; variable
67 // MatcherTuple<T>::type is a tuple type where each field is a Matcher
79 typedef ::testing::tuple<Matcher<A1> > type;
84 typedef ::testing::tuple<Matcher<A1>, Matcher<A2> > type;
89 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> > type;
94 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4> >
100 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>,
101 Matcher<A5> >
108 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>,
109 Matcher<A5>, Matcher<A6> >
[all …]
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/internal/
DMatcherTest.java31 private void checkMatcherBehavesAsExpected(MatcherApi matcher) { in checkMatcherBehavesAsExpected() argument
35 // Test if there is no matcher data. in checkMatcherBehavesAsExpected()
36 assertInvalid(matcher, "1", desc); in checkMatcherBehavesAsExpected()
39 assertInvalid(matcher, "91", desc); in checkMatcherBehavesAsExpected()
40 assertInvalid(matcher, "81", desc); in checkMatcherBehavesAsExpected()
41 assertMatched(matcher, "911", desc); in checkMatcherBehavesAsExpected()
42 assertInvalid(matcher, "811", desc); in checkMatcherBehavesAsExpected()
43 assertTooLong(matcher, "9111", desc); in checkMatcherBehavesAsExpected()
44 assertInvalid(matcher, "8111", desc); in checkMatcherBehavesAsExpected()
47 assertMatched(matcher, "2", desc); in checkMatcherBehavesAsExpected()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DLocaleMatcherTest.java82 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/googletest/googlemock/include/gmock/
Dgmock-matchers.h66 // To implement a matcher Foo for type T, define:
69 // 2. a factory function that creates a Matcher<T> object from a
73 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
75 // ownership management as Matcher objects can now be copied like
79 // used by a matcher to explain why a value matches or doesn't match.
106 // the match result. A matcher's MatchAndExplain() method can use
121 // matcher.
126 // Describes this matcher to an ostream. The function should print
128 // matcher should have. The subject of the verb phrase is the value
130 // matcher prints "is greater than 7".
[all …]
/third_party/skia/third_party/externals/tint/src/
Dintrinsic_table.inl31 /// 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/googletest/googlemock/src/
Dgmock-matchers.cc33 // This file implements Matcher<const string&>, Matcher<string>, and
46 // Constructs a matcher that matches a const std::string& whose value is
48 Matcher<const std::string&>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string
51 // Constructs a matcher that matches a const std::string& whose value is
53 Matcher<const std::string&>::Matcher(const ::string& s) { in Matcher() function in testing::Matcher::string
58 // Constructs a matcher that matches a const std::string& whose value is
60 Matcher<const std::string&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string
64 // Constructs a matcher that matches a std::string whose value is equal to
66 Matcher<std::string>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string
69 // Constructs a matcher that matches a std::string whose value is equal to
[all …]
/third_party/googletest/googlemock/test/
Dgmock-matchers_test.cc106 using testing::Matcher;
186 Matcher<int> GreaterThan(int n) { in GreaterThan()
198 // Returns the description of the given matcher.
200 std::string Describe(const Matcher<T>& m) { in Describe()
204 // Returns the description of the negation of the given matcher.
206 std::string DescribeNegation(const Matcher<T>& m) { in DescribeNegation()
278 // Tests implementing a monomorphic matcher using MatchAndExplain().
300 Matcher<int> m = MakeMatcher(new NewEvenMatcherImpl); in TEST()
307 // Tests default-constructing a matcher.
309 Matcher<double> m; in TEST()
[all …]
Dgmock-generated-internal-utils_test.cc42 using ::testing::Matcher;
55 CompileAssertTypesEqual<tuple<Matcher<int> >, in TEST()
60 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >, in TEST()
66 tuple<Matcher<int>, Matcher<char>, Matcher<bool>, Matcher<double>, in TEST()
67 Matcher<char*> >, in TEST()
87 CompileAssertTypesEqual<tuple<Matcher<bool> >, F::ArgumentMatcherTuple>(); in TEST()
100 tuple<Matcher<bool>, Matcher<const long&> >, // NOLINT in TEST()
118 tuple<Matcher<bool>, Matcher<int>, Matcher<char*>, Matcher<int&>, in TEST()
119 Matcher<const long&> >, // NOLINT in TEST()
/third_party/icu/icu4c/source/test/intltest/
Dlocalematchertest.cpp95 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testEmpty() local
96 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty()
98 LocaleMatcher::Result result = matcher.getBestMatchResult("fr", errorCode); in testEmpty()
124 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
126 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
128 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
130 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
132 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
138 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
140 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
[all …]
/third_party/icu/icu4c/source/i18n/
Dnumparse_compositions.cpp28 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/
Dnumparse_compositions.cpp27 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/
Dnumparse_compositions.cpp28 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/node/deps/icu-small/source/i18n/
Dnumparse_compositions.cpp28 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/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/
DSeriesMatcher.java23 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/boost/boost/xpressive/detail/static/
Dstatic.hpp110 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/
Dcommon.dart20 /// 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/
Dregexp_adapter_icu.cc130 const scoped_ptr<RegexMatcher> matcher( in Consume() local
131 utf8_regexp_->matcher(*input->Data(), status)); in Consume()
133 ? matcher->lookingAt(input->position(), status) in Consume()
134 : matcher->find(input->position(), status); in Consume()
146 if (group_index > matcher->groupCount()) { in Consume()
150 UnicodeStringToUtf8String(matcher->group(group_index, status)); in Consume()
153 input->set_position(matcher->end(status)); in Consume()
165 const scoped_ptr<RegexMatcher> matcher( in Match() local
166 utf8_regexp_->matcher(*input.Data(), status)); in Match()
168 ? matcher->matches(input.position(), status) in Match()
[all …]
/third_party/glib/gio/
Dgfileinfo.c64 /* We use this nasty thing, because NULL is a valid attribute matcher (matches nothing) */
2329 sub_matcher_matches (SubMatcher *matcher, in sub_matcher_matches() argument
2332 if ((matcher->mask & submatcher->mask) != matcher->mask) in sub_matcher_matches()
2335 return matcher->id == (submatcher->id & matcher->mask); in sub_matcher_matches()
2338 /* Call this function after modifying a matcher.
2342 matcher_optimize (GFileAttributeMatcher *matcher) in matcher_optimize() argument
2348 if (matcher->all) in matcher_optimize()
2350 if (matcher->sub_matchers) in matcher_optimize()
2352 g_array_free (matcher->sub_matchers, TRUE); in matcher_optimize()
2353 matcher->sub_matchers = NULL; in matcher_optimize()
[all …]
/third_party/boost/libs/xpressive/example/
Dexample.vcproj349 Name="matcher"
352 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\action_matcher.hpp"
356 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\alternate_end_matcher.hpp"
360 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\alternate_matcher.hpp"
364 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\any_matcher.hpp"
368 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\assert_bol_matcher.hpp"
372 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\assert_bos_matcher.hpp"
376 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\assert_eol_matcher.hpp"
380 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\assert_eos_matcher.hpp"
384 RelativePath="..\..\..\boost\xpressive\detail\core\matcher\assert_line_base.hpp"
[all …]

12345678910>>...31