/external/guice/core/test/com/google/inject/ |
D | MethodInterceptionTest.java | 19 import static com.google.inject.matcher.Matchers.only; 26 import com.google.inject.matcher.Matchers; 72 Matchers.any(), Matchers.returns(only(Foo.class)), new ReturnNullInterceptor()); in testSharedProxyClasses() 112 Matchers.any(), Matchers.returns(only(Foo.class)), new ReturnNullInterceptor()); in testSharedProxyClasses() 132 Matchers.any(), in testGetThis() 133 Matchers.any(), in testGetThis() 156 Matchers.any(), in testInterceptingFinalClass() 157 Matchers.any(), in testInterceptingFinalClass() 188 Matchers.any(), Matchers.returns(only(Foo.class)), countingInterceptor); in testSpiAccessToInterceptors() 190 Matchers.any(), in testSpiAccessToInterceptors() [all …]
|
D | ProvisionListenerTest.java | 30 import com.google.inject.matcher.Matchers; 56 bindListener(Matchers.any(), new FailBeforeProvision()); in testExceptionInListenerBeforeProvisioning() 82 bindListener(Matchers.any(), new FailAfterProvision()); in testExceptionInListenerAfterProvisioning() 108 bindListener(Matchers.any(), new JustProvision()); in testExceptionInProvisionExplicitlyCalled() 131 bindListener(Matchers.any(), new NoProvision()); in testExceptionInProvisionAutomaticallyCalled() 252 bindListener(Matchers.any(), new ProvisionTwice()); in testListenerCallsProvisionTwice() 279 bindListener(Matchers.any(), count1); in testCachedInScopePreventsProvisionNotify() 302 bindListener(Matchers.any(), count1); in testCombineAllBindListenerCalls() 303 bindListener(Matchers.any(), count2); in testCombineAllBindListenerCalls() 319 bindListener(Matchers.any(), count1, new FailBeforeProvision(), count2); in testNotifyEarlyListenersIfFailBeforeProvision() [all …]
|
D | TypeConversionTest.java | 25 import com.google.inject.matcher.Matchers; 282 Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(result)); in testCustomTypeConversion() 303 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), failingTypeConverter()); in configure() 362 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(null)); in configure() 390 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(-1)); in configure() 436 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), converter); in testStringIsConvertedOnlyOnce() 466 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(new Date())); in configure() 473 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(new Date())); in configure()
|
/external/guice/jdk8-tests/test/com/google/inject/jdk8/ |
D | DefaultMethodInterceptionTest.java | 26 import com.google.inject.matcher.Matchers; 83 Matchers.any(), Matchers.annotatedWith(InterceptMe.class), interceptor); in testInterceptedDefaultMethod() 101 Matchers.any(), Matchers.annotatedWith(InterceptMe.class), interceptor); in testInterceptedDefaultMethod_calledByAnotherMethod() 130 Matchers.any(), Matchers.annotatedWith(InterceptMe.class), interceptor); in testInterceptedDefaultMethod_whenParentClassDefinesNonInterceptedMethod() 166 Matchers.any(), Matchers.annotatedWith(InterceptMe.class), interceptor); in testInterceptedDefaultMethod_whenParentClassDefinesInterceptedMethod() 200 bindInterceptor(Matchers.subclassesOf(Baz.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType() 219 bindInterceptor(Matchers.subclassesOf(BazImpl.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | Matchers.h | 39 std::vector<Matcher<T>> Matchers; variable 42 SubsequenceMatcher(std::vector<Matcher<T>> M) : Matchers(M) {} in SubsequenceMatcher() 47 for (const auto &M : Matchers) { in DescribeTo() 57 std::vector<int> Matches(Matchers.size()); in MatchAndExplain() 59 for (size_t J = 0; I < Matchers.size() && J < V.size(); ++J) in MatchAndExplain() 60 if (Matchers[I].Matches(V[J])) in MatchAndExplain() 62 if (I == Matchers.size()) // We exhausted all matchers. in MatchAndExplain() 68 Matchers[K].DescribeTo(L->stream()); in MatchAndExplain() 72 Matchers[I].DescribeTo(L->stream()); in MatchAndExplain() 84 std::tuple<M...> Matchers; variable [all …]
|
/external/clang/lib/ASTMatchers/ |
D | ASTMatchFinder.cpp | 296 MatchASTVisitor(const MatchFinder::MatchersByType *Matchers, in MatchASTVisitor() argument 298 : Matchers(Matchers), Options(Options), ActiveASTContext(nullptr) {} in MatchASTVisitor() 309 for (MatchCallback *MC : Matchers->AllCallbacks) { in onStartOfTranslationUnit() 319 for (MatchCallback *MC : Matchers->AllCallbacks) { in onEndOfTranslationUnit() 521 void matchWithoutFilter(const T &Node, const MC &Matchers) { in matchWithoutFilter() argument 524 for (const auto &MP : Matchers) { in matchWithoutFilter() 546 auto &Matchers = this->Matchers->DeclOrStmt; in matchWithFilter() local 548 auto &MP = Matchers[I]; in matchWithFilter() 562 auto &Matchers = this->Matchers->DeclOrStmt; in getFilterForKind() local 563 assert((Matchers.size() < USHRT_MAX) && "Too many matchers."); in getFilterForKind() [all …]
|
/external/llvm-project/clang/lib/ASTMatchers/ |
D | ASTMatchFinder.cpp | 379 MatchASTVisitor(const MatchFinder::MatchersByType *Matchers, in MatchASTVisitor() argument 381 : Matchers(Matchers), Options(Options), ActiveASTContext(nullptr) {} in MatchASTVisitor() 392 for (MatchCallback *MC : Matchers->AllCallbacks) { in onStartOfTranslationUnit() 402 for (MatchCallback *MC : Matchers->AllCallbacks) { in onEndOfTranslationUnit() 687 void matchWithoutFilter(const T &Node, const MC &Matchers) { in matchWithoutFilter() argument 690 for (const auto &MP : Matchers) { in matchWithoutFilter() 712 auto &Matchers = this->Matchers->DeclOrStmt; in matchWithFilter() local 714 auto &MP = Matchers[I]; in matchWithFilter() 727 auto &Matchers = this->Matchers->DeclOrStmt; in getFilterForKind() local 728 assert((Matchers.size() < USHRT_MAX) && "Too many matchers."); in getFilterForKind() [all …]
|
/external/guice/core/test/com/google/inject/matcher/ |
D | MatcherTest.java | 21 import static com.google.inject.matcher.Matchers.annotatedWith; 22 import static com.google.inject.matcher.Matchers.any; 23 import static com.google.inject.matcher.Matchers.identicalTo; 24 import static com.google.inject.matcher.Matchers.inPackage; 25 import static com.google.inject.matcher.Matchers.inSubpackage; 26 import static com.google.inject.matcher.Matchers.not; 27 import static com.google.inject.matcher.Matchers.only; 28 import static com.google.inject.matcher.Matchers.returns; 29 import static com.google.inject.matcher.Matchers.subclassesOf; 116 Package matchersPackage = Matchers.class.getPackage(); in testInPackage() [all …]
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsHandshakerClientTest.java | 44 import org.mockito.Matchers; 72 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeFailure() 85 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeSuccess() 98 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeWithOptions() 121 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeFailure() 135 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeSuccess() 150 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeEmptyOutFrame() 165 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeWithPrefixBuffer() 182 when(mockStub.send(Matchers.<HandshakerReq>any())) in nextFailure() 196 when(mockStub.send(Matchers.<HandshakerReq>any())) in nextSuccess() [all …]
|
D | AltsTsiHandshakerTest.java | 37 import org.mockito.Matchers; 104 verify(mockClient, never()).startServerHandshake(Matchers.<ByteBuffer>any()); in processBytesFromPeerFalseStart() 105 verify(mockClient, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerFalseStart() 116 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServer() 130 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServerEmptyOutput() 145 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServerFinished() 158 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerNoBytesConsumed() 174 verify(mockClient, never()).startServerHandshake(Matchers.<ByteBuffer>any()); in processBytesFromPeerClientNext() 188 verify(mockClient, never()).startServerHandshake(Matchers.<ByteBuffer>any()); in processBytesFromPeerClientNextFinished() 249 when(mockServer.startServerHandshake(Matchers.<ByteBuffer>any())).thenReturn(outputFrame); in extractServerPeerSuccess()
|
/external/mockito/src/test/java/org/mockitousage/verification/ |
D | VerificationUsingMatchersTest.java | 10 import org.mockito.Matchers; 21 import static org.mockito.Matchers.*; 71 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers() 79 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers() 87 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers() 94 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | VariantValue.cpp | 114 : Matchers(std::move(MatchersIn)) {} in PolymorphicPayload() 119 if (Matchers.size() != 1) in getSingleMatcher() 121 return Matchers[0]; in getSingleMatcher() 126 for (size_t i = 0, e = Matchers.size(); i != e; ++i) { in getTypeAsString() 129 Inner += Matchers[i].getSupportedKind().asStringRef(); in getTypeAsString() 139 for (size_t i = 0, e = Matchers.size(); i != e; ++i) { in getTypedMatcher() 141 if (Ops.canConstructFrom(Matchers[i], IsExactMatch)) { in getTypedMatcher() 148 Found = &Matchers[i]; in getTypedMatcher() 162 for (const DynTypedMatcher &Matcher : Matchers) { in isConvertibleTo() 174 const std::vector<DynTypedMatcher> Matchers; member in clang::ast_matchers::dynamic::VariantMatcher::PolymorphicPayload [all …]
|
/external/catch2/projects/SelfTest/Baselines/ |
D | console.std.approved.txt | 331 Matchers.tests.cpp:<line number> 334 Matchers.tests.cpp:<line number>: FAILED: 340 Matchers.tests.cpp:<line number>: FAILED: 380 Matchers.tests.cpp:<line number> 383 Matchers.tests.cpp:<line number>: FAILED: 388 Matchers.tests.cpp:<line number>: FAILED: 468 Matchers.tests.cpp:<line number> 471 Matchers.tests.cpp:<line number>: FAILED: 477 Matchers.tests.cpp:<line number>: FAILED: 487 Matchers.tests.cpp:<line number> [all …]
|
D | compact.sw.approved.txt | 236 Matchers.tests.cpp:<line number>: passed: 1, Predicate<int>(alwaysTrue, "always true") for: 1 match… 237 Matchers.tests.cpp:<line number>: passed: 1, !Predicate<int>(alwaysFalse, "always false") for: 1 no… 238 Matchers.tests.cpp:<line number>: passed: "Hello olleH", Predicate<std::string>( [] (std::string co… 239 Matchers.tests.cpp:<line number>: passed: "This wouldn't pass", !Predicate<std::string>( [] (std::s… 315 Matchers.tests.cpp:<line number>: passed: testStringForMatching2(), !composed1 for: "some completel… 316 Matchers.tests.cpp:<line number>: passed: testStringForMatching2(), composed2 for: "some completely… 317 Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Contains("not there", Catch::Cas… 318 Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Contains("STRING") for: "this st… 343 Matchers.tests.cpp:<line number>: failed: testStringForMatching(), EndsWith("Substring") for: "this… 344 Matchers.tests.cpp:<line number>: failed: testStringForMatching(), EndsWith("this", Catch::CaseSens… [all …]
|
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
D | VariantValue.cpp | 116 : Matchers(std::move(MatchersIn)) {} in PolymorphicPayload() 121 if (Matchers.size() != 1) in getSingleMatcher() 123 return Matchers[0]; in getSingleMatcher() 128 for (size_t i = 0, e = Matchers.size(); i != e; ++i) { in getTypeAsString() 131 Inner += Matchers[i].getSupportedKind().asStringRef(); in getTypeAsString() 141 for (size_t i = 0, e = Matchers.size(); i != e; ++i) { in getTypedMatcher() 143 if (Ops.canConstructFrom(Matchers[i], IsExactMatch)) { in getTypedMatcher() 150 Found = &Matchers[i]; in getTypedMatcher() 163 for (const DynTypedMatcher &Matcher : Matchers) { in isConvertibleTo() 175 const std::vector<DynTypedMatcher> Matchers; member in clang::ast_matchers::dynamic::VariantMatcher::PolymorphicPayload [all …]
|
/external/catch2/include/internal/ |
D | catch_matchers.cpp | 11 namespace Matchers { namespace 25 using namespace Matchers; 26 using Matchers::Impl::MatcherBase;
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | DnsNameResolverTest.java | 27 import static org.mockito.Matchers.any; 69 import org.mockito.Matchers; 188 when(mockResolver.resolveAddress(Matchers.anyString())).thenReturn(answer1).thenReturn(answer2); in resolve() 205 verify(mockResolver, times(2)).resolveAddress(Matchers.anyString()); in resolve() 214 when(mockResolver.resolveAddress(Matchers.anyString())) in resolveAll_nullResourceResolver() 233 when(mockResolver.resolveAddress(Matchers.anyString())) in resolveAll_nullResourceResolver_addressFailure() 252 when(mockAddressResolver.resolveAddress(Matchers.anyString())) in resolveAll_presentResourceResolver() 255 when(mockResourceResolver.resolveTxt(Matchers.anyString())) in resolveAll_presentResourceResolver() 257 when(mockResourceResolver.resolveSrv(Matchers.any(AddressResolver.class), Matchers.anyString())) in resolveAll_presentResourceResolver() 278 when(mockAddressResolver.resolveAddress(Matchers.anyString())) in resolveAll_onlyBalancers() [all …]
|
/external/mockito/src/test/java/org/mockito/internal/util/reflection/ |
D | ParameterizedConstructorInstantiatorTest.java | 12 import org.mockito.Matchers; 73 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ob… in should_instantiate_type_if_resolver_provide_matching_types() 86 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ob… in should_fail_if_an_argument_instance_type_do_not_match_wanted_type() 98 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ nu… in should_report_failure_if_constructor_throws_exception() 111 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ""… in should_instantiate_type_with_vararg_constructor()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
D | AccessibilityUtil.java | 17 import org.hamcrest.Matchers; 151 Matchers.equalTo(TouchTargetSizeViewCheck.class)); in setSuppressingResultMatcher() 154 Matchers.equalTo(DuplicateClickableBoundsViewCheck.class)); in setSuppressingResultMatcher() 157 Matchers.anyOf(touchTargetResultMatcher, duplicateBoundsResultMatcher)); in setSuppressingResultMatcher() 160 Matchers.anyOf(matcher, touchTargetResultMatcher, duplicateBoundsResultMatcher)); in setSuppressingResultMatcher()
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | ParserTest.cpp | 60 Matchers.push_back(ToStore); in actOnMatcherExpression() 73 std::vector<MatcherInfo> Matchers; member in clang::ast_matchers::dynamic::__anonf43efe2e0111::MockSema 139 EXPECT_EQ(3ULL, Sema.Matchers.size()); in TEST() 140 const MockSema::MatcherInfo Bar = Sema.Matchers[0]; in TEST() 146 const MockSema::MatcherInfo Baz = Sema.Matchers[1]; in TEST() 152 const MockSema::MatcherInfo Foo = Sema.Matchers[2]; in TEST()
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/resolver/xds/ |
D | xds_resolver.cc | 363 const XdsApi::Route::Matchers::PathMatcher& path_matcher) { in PathMatch() 365 case XdsApi::Route::Matchers::PathMatcher::PathMatcherType::PREFIX: in PathMatch() 370 case XdsApi::Route::Matchers::PathMatcher::PathMatcherType::PATH: in PathMatch() 374 case XdsApi::Route::Matchers::PathMatcher::PathMatcherType::REGEX: in PathMatch() 408 const XdsApi::Route::Matchers::HeaderMatcher& header_matcher, in HeaderMatchHelper() 426 XdsApi::Route::Matchers::HeaderMatcher::HeaderMatcherType::PRESENT) { in HeaderMatchHelper() 435 case XdsApi::Route::Matchers::HeaderMatcher::HeaderMatcherType::EXACT: in HeaderMatchHelper() 437 case XdsApi::Route::Matchers::HeaderMatcher::HeaderMatcherType::REGEX: in HeaderMatchHelper() 439 case XdsApi::Route::Matchers::HeaderMatcher::HeaderMatcherType::RANGE: in HeaderMatchHelper() 446 case XdsApi::Route::Matchers::HeaderMatcher::HeaderMatcherType::PREFIX: in HeaderMatchHelper() [all …]
|
/external/guice/extensions/persist/src/com/google/inject/persist/ |
D | PersistModule.java | 19 import static com.google.inject.matcher.Matchers.annotatedWith; 20 import static com.google.inject.matcher.Matchers.any;
|
/external/mockito/src/test/java/org/mockitousage/matchers/ |
D | MatchersMixedWithRawArgumentsTest.java | 14 import static org.mockito.Matchers.anyBoolean; 15 import static org.mockito.Matchers.anyString;
|
/external/grpc-grpc-java/examples/src/test/java/io/grpc/examples/header/ |
D | HeaderClientInterceptorTest.java | 47 import org.mockito.Matchers; 98 Matchers.<ServerCall<HelloRequest, HelloReply>>any(), in clientHeaderDeliveredToServer() 100 Matchers.<ServerCallHandler<HelloRequest, HelloReply>>any()); in clientHeaderDeliveredToServer()
|
/external/guice/core/test/com/google/inject/internal/ |
D | ProxyFactoryTest.java | 19 import static com.google.inject.matcher.Matchers.annotatedWith; 20 import static com.google.inject.matcher.Matchers.any; 21 import static com.google.inject.matcher.Matchers.not; 22 import static com.google.inject.matcher.Matchers.only;
|