Home
last modified time | relevance | path

Searched refs:matchers (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DSeriesMatcher.java18 protected List<NumberParseMatcher> matchers = null; field in SeriesMatcher
23 if (matchers == null) { in addMatcher()
24 matchers = new ArrayList<NumberParseMatcher>(); in addMatcher()
26 matchers.add(matcher); in addMatcher()
34 return matchers == null ? 0 : matchers.size(); in length()
40 if (matchers == null) { in match()
50 for (int i = 0; i < matchers.size();) { in match()
51 NumberParseMatcher matcher = matchers.get(i); in match()
69 …if (i < matchers.size() && segment.getOffset() != result.charEnd && result.charEnd > matcherOffset… in match()
90 if (matchers == null) { in smokeTest()
[all …]
DNumberParserImpl.java270 private final List<NumberParseMatcher> matchers; field in NumberParserImpl
280 matchers = new ArrayList<>(); in NumberParserImpl()
287 this.matchers.add(matcher); in addMatcher()
290 public void addMatchers(Collection<? extends NumberParseMatcher> matchers) { in addMatchers() argument
292 this.matchers.addAll(matchers); in addMatchers()
335 for (NumberParseMatcher matcher : matchers) { in parse()
343 for (int i = 0; i < matchers.size();) {
348 NumberParseMatcher matcher = matchers.get(i);
387 for (int i = 0; i < matchers.size(); i++) {
388 NumberParseMatcher matcher = matchers.get(i);
[all …]
DAffixMatcher.java91 ArrayList<AffixMatcher> matchers = new ArrayList<>(6); in createMatchers() local
143 matchers.add(getInstance(prefix, suffix, flags)); in createMatchers()
147 matchers.add(getInstance(prefix, null, flags)); in createMatchers()
150 matchers.add(getInstance(null, suffix, flags)); in createMatchers()
156 Collections.sort(matchers, COMPARATOR); in createMatchers()
157 output.addMatchers(matchers); in createMatchers()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/
DSeriesMatcher.java20 protected List<NumberParseMatcher> matchers = null; field in SeriesMatcher
25 if (matchers == null) { in addMatcher()
26 matchers = new ArrayList<NumberParseMatcher>(); in addMatcher()
28 matchers.add(matcher); in addMatcher()
36 return matchers == null ? 0 : matchers.size(); in length()
42 if (matchers == null) { in match()
52 for (int i = 0; i < matchers.size();) { in match()
53 NumberParseMatcher matcher = matchers.get(i); in match()
71 …if (i < matchers.size() && segment.getOffset() != result.charEnd && result.charEnd > matcherOffset… in match()
92 if (matchers == null) { in smokeTest()
[all …]
DNumberParserImpl.java272 private final List<NumberParseMatcher> matchers; field in NumberParserImpl
282 matchers = new ArrayList<>(); in NumberParserImpl()
289 this.matchers.add(matcher); in addMatcher()
292 public void addMatchers(Collection<? extends NumberParseMatcher> matchers) { in addMatchers() argument
294 this.matchers.addAll(matchers); in addMatchers()
337 for (NumberParseMatcher matcher : matchers) { in parse()
345 for (int i = 0; i < matchers.size();) {
350 NumberParseMatcher matcher = matchers.get(i);
389 for (int i = 0; i < matchers.size(); i++) {
390 NumberParseMatcher matcher = matchers.get(i);
[all …]
DAffixMatcher.java93 ArrayList<AffixMatcher> matchers = new ArrayList<>(6); in createMatchers() local
145 matchers.add(getInstance(prefix, suffix, flags)); in createMatchers()
149 matchers.add(getInstance(prefix, null, flags)); in createMatchers()
152 matchers.add(getInstance(null, suffix, flags)); in createMatchers()
158 Collections.sort(matchers, COMPARATOR); in createMatchers()
159 output.addMatchers(matchers); in createMatchers()
/third_party/abseil-cpp/absl/random/internal/
Dmock_overload_set.h50 const ::testing::Matcher<Args>&... matchers)
51 -> decltype(MockHelpers::MockFor<KeyT>(gen).gmock_Call(matchers...)) {
52 return MockHelpers::MockFor<KeyT>(gen).gmock_Call(matchers...);
65 const ::testing::Matcher<Args>&... matchers)
67 matchers...)) {
68 return MockHelpers::MockFor<KeyT>(gen).gmock_Call(matcher, matchers...);
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dmock_overload_set.h49 auto gmock_Call(MockURBG& gen, const ::testing::Matcher<Args>&... matchers)
50 -> decltype(MockHelpers::MockFor<KeyT>(gen).gmock_Call(matchers...)) {
53 return MockHelpers::MockFor<KeyT>(gen).gmock_Call(matchers...);
66 const ::testing::Matcher<Args>&... matchers)
68 matchers...)) {
71 return MockHelpers::MockFor<KeyT>(gen).gmock_Call(matcher, matchers...);
/third_party/googletest/docs/reference/
Dmocking.md61 `EXPECT_CALL(`*`mock_object`*`,`*`method_name`*`(`*`matchers...`*`))`
65 that match the given matchers *`matchers...`*. `EXPECT_CALL` must precede any
68 The parameter *`matchers...`* is a comma-separated list of
69 [matchers](../gmock_for_dummies.md#matchers-what-arguments-do-we-expect) that
72 matchers. If `(`*`matchers...`*`)` is omitted, the expectation behaves as if
73 each argument's matcher were a [wildcard matcher (`_`)](matchers.md#wildcard).
74 See the [Matchers Reference](matchers.md) for a list of all built-in matchers.
80 EXPECT_CALL(mock_object, method_name(matchers...))
116 GoogleTest provides some built-in matchers for 2-tuples, including the `Lt()`
117 matcher above. See [Multi-argument Matchers](matchers.md#MultiArgMatchers).
[all …]
Dmatchers.md17 Built-in matchers (where `argument` is the function argument, e.g.
19 `EXPECT_CALL(mock_object, method(matchers))`, the arguments of `method`) are
20 divided into several categories. All matchers are defined in the `::testing`
49 Except `Ref()`, these matchers make a *copy* of `value` in case it's modified or
71 The above matchers use ULP-based comparison (the same as used in googletest).
104 [here](../advanced.md#regular-expression-syntax). All of these matchers, except
121 …` | The same as `ElementsAre()` except that the expected element values/matchers come from an init…
123 …rderedElementsAre(x0, x1, ..., xk)` for some subset `{x0, x1, ..., xk}` of the expected matchers. |
124 …f(array, count)` | Some subset of `argument` matches `UnorderedElementsAre(`expected matchers`)`. |
128 …ame as `UnorderedElementsAre()` except that the expected element values/matchers come from an init…
[all …]
Dassertions.md76 The following assertion allows [matchers](matchers.md) to be used to verify
84 Verifies that *`value`* matches the [matcher](matchers.md) *`matcher`*.
115 GoogleTest provides a built-in library of matchers—see the
116 [Matchers Reference](matchers.md). It is also possible to write your own
117 matchers—see [Writing New Matchers Quickly](../gmock_cook_book.md#NewMatchers).
118 The use of matchers makes `EXPECT_THAT` a powerful, extensible assertion.
568 The parameter *`matcher`* is either a [matcher](matchers.md) for a `const
572 [`ContainsRegex(s)`](matchers.md#string-matchers), **not**
573 [`Eq(s)`](matchers.md#generic-comparison).
620 The parameter *`matcher`* is either a [matcher](matchers.md) for a `const
[all …]
/third_party/googletest/googlemock/test/
Dgmock-internal-utils_test.cc287 std::tuple<> matchers; in TEST() local
290 EXPECT_TRUE(TupleMatches(matchers, values)); in TEST()
294 std::tuple<Matcher<int> > matchers(Eq(1)); in TEST() local
297 EXPECT_TRUE(TupleMatches(matchers, values1)); in TEST()
298 EXPECT_FALSE(TupleMatches(matchers, values2)); in TEST()
302 std::tuple<Matcher<int>, Matcher<char> > matchers(Eq(1), Eq('a')); in TEST() local
306 EXPECT_TRUE(TupleMatches(matchers, values1)); in TEST()
307 EXPECT_FALSE(TupleMatches(matchers, values2)); in TEST()
308 EXPECT_FALSE(TupleMatches(matchers, values3)); in TEST()
309 EXPECT_FALSE(TupleMatches(matchers, values4)); in TEST()
[all …]
/third_party/grpc/src/core/lib/security/credentials/xds/
Dxds_credentials.cc39 const std::vector<StringMatcher>& matchers) { in XdsVerifySubjectAlternativeNames() argument
40 if (matchers.empty()) return true; in XdsVerifySubjectAlternativeNames()
42 for (const auto& matcher : matchers) { in XdsVerifySubjectAlternativeNames()
108 const std::vector<StringMatcher>& matchers) { in TestOnlyXdsVerifySubjectAlternativeNames() argument
110 subject_alternative_names, subject_alternative_names_size, matchers); in TestOnlyXdsVerifySubjectAlternativeNames()
/third_party/grpc/src/core/ext/filters/client_channel/lb_policy/xds/
Dxds_routing.cc60 XdsApi::RdsUpdate::RdsRoute::Matchers matchers; member
114 const XdsApi::RdsUpdate::RdsRoute::Matchers* matchers; member
336 if (!PathMatch(args.path, route.matchers->path_matcher)) continue; in Pick()
338 if (!HeadersMatch(route.matchers->header_matchers, args.initial_metadata)) { in Pick()
342 if (route.matchers->fraction_per_million.has_value() && in Pick()
343 !UnderFraction(route.matchers->fraction_per_million.value())) { in Pick()
473 route.matchers = &config_route.matchers; in UpdateStateLocked()
860 route->matchers.path_matcher.type = XdsApi::RdsUpdate::RdsRoute:: in ParseRoute()
862 route->matchers.path_matcher.string_matcher = it->second.string_value(); in ParseRoute()
876 route->matchers.path_matcher.type = XdsApi::RdsUpdate::RdsRoute:: in ParseRoute()
[all …]
/third_party/googletest/
DBUILD.gn28 "googletest/include/gtest/gtest-matchers.h",
55 "googletest/src/gtest-matchers.cc",
104 "googlemock/include/gmock/gmock-matchers.h",
106 "googlemock/include/gmock/gmock-more-matchers.h",
110 "googlemock/include/gmock/internal/custom/gmock-matchers.h",
118 "googlemock/src/gmock-matchers.cc",
/third_party/icu/icu4c/source/test/intltest/
Dnumbertest_parse.cpp199 ArraySeriesMatcher::MatcherArray matchers(5, status); in testSeriesMatcher() local
201 matchers[0] = &m0; in testSeriesMatcher()
202 matchers[1] = &m1; in testSeriesMatcher()
203 matchers[2] = &m2; in testSeriesMatcher()
204 matchers[3] = &m3; in testSeriesMatcher()
205 matchers[4] = &m4; in testSeriesMatcher()
206 ArraySeriesMatcher series(matchers, 5); in testSeriesMatcher()
/third_party/node/deps/icu-small/source/i18n/
Dnumparse_compositions.cpp87 ArraySeriesMatcher::ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen) in ArraySeriesMatcher() argument
88 : fMatchers(std::move(matchers)), fMatchersLen(matchersLen) { in ArraySeriesMatcher()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dnumparse_compositions.cpp86 ArraySeriesMatcher::ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen) in ArraySeriesMatcher() argument
87 : fMatchers(std::move(matchers)), fMatchersLen(matchersLen) { in ArraySeriesMatcher()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumparse_compositions.cpp87 ArraySeriesMatcher::ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen) in ArraySeriesMatcher() argument
88 : fMatchers(std::move(matchers)), fMatchersLen(matchersLen) { in ArraySeriesMatcher()
/third_party/icu/icu4c/source/i18n/
Dnumparse_compositions.cpp87 ArraySeriesMatcher::ArraySeriesMatcher(MatcherArray& matchers, int32_t matchersLen) in ArraySeriesMatcher() argument
88 : fMatchers(std::move(matchers)), fMatchersLen(matchersLen) { in ArraySeriesMatcher()
/third_party/googletest/googlemock/include/gmock/
Dgmock-matchers.h626 static void ExplainMatchFailuresTo(const MatcherTuple& matchers, in ExplainMatchFailuresTo() argument
630 TuplePrefix<N - 1>::ExplainMatchFailuresTo(matchers, values, os); in ExplainMatchFailuresTo()
635 std::get<N - 1>(matchers); in ExplainMatchFailuresTo()
641 std::get<N - 1>(matchers).DescribeTo(os); in ExplainMatchFailuresTo()
691 void ExplainMatchFailureTupleTo(const MatcherTuple& matchers, in ExplainMatchFailureTupleTo() argument
695 matchers, values, os); in ExplainMatchFailureTupleTo()
1245 explicit AllOfMatcherImpl(std::vector<Matcher<T> > matchers)
1246 : matchers_(std::move(matchers)) {}
1306 VariadicMatcher(const Args&... matchers) // NOLINT
1307 : matchers_(matchers...) {
[all …]
/third_party/googletest/googlemock/
DREADME.md22 - Comes with a rich set of matchers for validating function arguments.
27 - Lets a user extend it by defining new matchers and actions.
/third_party/grpc/src/core/ext/filters/client_channel/xds/
Dxds_api.h116 Matchers matchers; member
131 return (matchers == other.matchers &&
/third_party/typescript/src/services/
DgetEditsForFileRename.ts64 …const matchers = getFileMatcherPatterns(configDir, /*excludes*/ [], includes, useCaseSensitiveFile… constant
66 …if (getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames…
67 …!getRegexFromPattern(Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).t…
/third_party/grpc/src/core/ext/xds/
Dxds_certificate_provider.cc342 const std::string& cluster, std::vector<StringMatcher> matchers) { in UpdateSubjectAlternativeNameMatchers() argument
344 if (matchers.empty()) { in UpdateSubjectAlternativeNameMatchers()
347 san_matcher_map_[cluster] = std::move(matchers); in UpdateSubjectAlternativeNameMatchers()

1234